/* src/css/styles.css */
:root {
  /* Dark mode (default) */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --background: #0f172a;
  --surface: #1e293b;
  --surface-hover: #2d3748;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --error: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --tag-bg: rgba(99, 102, 241, 0.2);
  --tag-text: #818cf8;
  --price-up: #10b981;
  --price-down: #ef4444;
}

/* Light mode variables */
body.light-mode {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --background: #f8fafc;
  --surface: #ffffff;
  --surface-hover: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(0, 0, 0, 0.1);
  --tag-bg: rgba(79, 70, 229, 0.1);
  --tag-text: #4f46e5;
  --price-up: #059669;
  --price-down: #dc2626;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  padding: 3rem 1rem;
  position: relative;
  background-color: #1a1f36;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  box-shadow: 0 4px 20px -1px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* Crypto-themed circuit board pattern */
header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.15'%3E%3Cpath d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

/* Gradient overlay */
header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.4) 0%, transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.35) 0%, transparent 30%),
    linear-gradient(to bottom, rgba(26, 31, 54, 0.8) 0%, rgba(26, 31, 54, 0.2) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Bitcoin and Ethereum symbols in background */
header .crypto-symbols {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  opacity: 0.07;
  pointer-events: none;
}

header .crypto-symbols .bitcoin {
  position: absolute;
  top: 20%;
  left: 10%;
  font-size: 5rem;
  color: #f7931a;
  transform: rotate(-15deg);
}

header .crypto-symbols .ethereum {
  position: absolute;
  bottom: 15%;
  right: 10%;
  font-size: 4rem;
  color: #627eea;
  transform: rotate(10deg);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

h1 {
  font-size: 2.8rem;
  margin: 0;
  background: linear-gradient(to right, #6366f1, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  line-height: 1.2;
  position: relative;
  text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Main Content Styles */
main {
  padding: 1rem 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

/* Article Card Styles */
.article-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
  transform: translateY(10px);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: var(--primary);
}

.article-card:active {
  transform: translateY(-2px);
}

.article-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--primary), #8b5cf6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.article-card:hover::after {
  transform: scaleX(1);
}

.article-title {
  font-size: 1.1rem;
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.article-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.article-title a:hover {
  color: var(--primary);
}

.article-snippet {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.article-meta {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.article-meta svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Source Badge - Moved to source-badge-enhanced.css */
/* Keeping this comment as a reference that styling has been moved */

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tag {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tag:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tag.active {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  filter: brightness(1.15);
  font-weight: 600;
}

.tag.active:hover {
  filter: brightness(1.2);
}

/* SVG icon in tags */
.tag svg {
  margin-right: 2px;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(99, 102, 241, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error State */
.error {
  color: var(--error);
  padding: 2rem;
  text-align: center;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.error svg {
  color: var(--error);
}

.error small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.retry-button {
  margin-top: 1rem;
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.retry-button:hover {
  background-color: var(--primary-hover);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.theme-toggle:hover {
  background-color: var(--surface-hover);
  color: var(--primary);
}

/* Logo Styles */
.logo-container {
  width: 120px;
  height: 120px;
  position: relative;
  flex-shrink: 0;
}

.crypto-news-logo {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.5));
  transition: all 0.3s ease;
}

.crypto-news-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.7));
}

/* Dashboard elements animation */
.crypto-news-logo polyline {
  transition: stroke-width 0.3s ease, stroke-dasharray 0.5s ease;
}

.crypto-news-logo circle[cx="155"][cy="50"] {
  transition: r 0.3s ease, filter 0.3s ease;
}

.crypto-news-logo rect[rx="5"] {
  transition: fill 0.3s ease;
}

.crypto-news-logo:hover rect[rx="5"] {
  fill: #374151;
}

/* Search and Filter Section */
.search-filter-section {
  margin-bottom: 1.5rem;
}

/* Search Container */
.search-container {
  display: flex;
  margin-bottom: 1rem;
  position: relative;
}

#search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--surface);
  color: var(--text);
  font-size: 1rem;
  transition: all 0.2s;
}

#search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

#search-button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
}

#search-button:hover {
  color: var(--primary);
}

/* Filter Bar */
.filter-bar {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background-color: var(--surface);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

.active-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.active-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: var(--tag-bg);
  color: var(--primary);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.active-filter-tag .remove-tag {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgba(99, 102, 241, 0.2);
  color: var(--primary);
  font-size: 0.7rem;
  margin-left: 0.5rem;
  transition: all 0.2s;
}

.active-filter-tag .remove-tag:hover {
  background-color: var(--primary);
  color: white;
}

.active-filter strong {
  color: var(--primary);
  font-weight: 600;
}

.clear-filter-button {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.clear-filter-button:hover {
  background-color: var(--surface-hover);
  color: var(--primary);
  border-color: var(--primary);
}

/* Footer Styles */
footer {
  margin-top: 3rem;
  padding: 2rem 1rem;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
}

.footer-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--primary);
}

/* Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
  }

  .article-card {
    padding: 1.25rem;
  }

  .subtitle {
    font-size: 1rem;
  }
  
  .theme-toggle {
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .title-container {
    text-align: center;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  /* Search and filter responsive styles */
  .search-container {
    margin-bottom: 0.75rem;
  }
  
  #search-input {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
  }
  
  .active-filter {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .active-filter-tags {
    margin-bottom: 0.5rem;
  }
  
  .clear-filter-button {
    align-self: flex-end;
  }
  
  /* Adjust header padding for mobile */
  header {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  body {
    padding-bottom: 1rem;
  }

  header {
    padding: 1.5rem 0.5rem;
    margin-bottom: 0;
  }
  
  .article-card {
    padding: 1rem;
  }
  
  .footer-nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }
  
  /* Search and filter responsive styles for small screens */
  .search-container {
    margin-bottom: 0.5rem;
  }
  
  #search-input {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .filter-bar {
    padding: 0.5rem 0.75rem;
  }
  
  .active-filter-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }
  
  .active-filter-tag .remove-tag {
    width: 14px;
    height: 14px;
    font-size: 0.65rem;
    margin-left: 0.5rem;
  }
  
  .clear-filter-button {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* Crypto Ticker Styles */
.crypto-ticker-container {
  width: 100%;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  height: 48px;
  margin-bottom: 1rem;
  border-top: none;
}

.crypto-ticker {
  display: flex;
  align-items: center;
  height: 100%;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
}

.crypto-ticker:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.crypto-item {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  height: 100%;
  border-right: 1px solid var(--border);
  transition: background-color 0.2s;
  cursor: pointer;
}

.crypto-item:hover {
  background-color: var(--surface-hover);
}

.crypto-item img {
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
  border-radius: 50%;
}

.crypto-name {
  font-weight: 600;
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.crypto-symbol {
  color: var(--muted);
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

.crypto-price {
  font-weight: 500;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.crypto-change {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
}

.crypto-change.positive {
  color: var(--price-up);
  background-color: rgba(16, 185, 129, 0.1);
}

.crypto-change.negative {
  color: var(--price-down);
  background-color: rgba(239, 68, 68, 0.1);
}

.crypto-change svg {
  width: 12px;
  height: 12px;
  margin-right: 0.2rem;
}

/* Ticker controls */
.ticker-controls {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, transparent, var(--surface) 30%);
  padding-right: 0.5rem;
  z-index: 2;
}

.ticker-control-button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: all 0.2s;
}

.ticker-control-button:hover {
  background-color: var(--primary);
  color: white;
}

.ticker-control-button svg {
  width: 14px;
  height: 14px;
}

/* Ticker last updated indicator */
.ticker-last-updated {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(to left, transparent, var(--surface) 20%);
  padding: 0.25rem 0.5rem;
  z-index: 2;
}

.ticker-last-updated svg {
  opacity: 0.7;
}

/* Fallback warning */
.fallback-warning {
  position: absolute;
  left: 0;
  bottom: -20px;
  font-size: 0.7rem;
  color: var(--warning);
  background-color: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  z-index: 3;
}

.fallback-warning .retry-button {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.7rem;
  padding: 0;
  margin-left: 0.25rem;
  text-decoration: underline;
}

.fallback-warning .retry-button:hover {
  color: var(--primary-hover);
}

/* Ticker notification */
.ticker-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 100;
  animation: fadeIn 0.3s ease;
}

.ticker-notification.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Refresh button animation */
.ticker-control-button.refreshing {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Video Card Styles */
.video-card {
  display: flex;
  flex-direction: column;
}

.video-thumbnail {
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: #000;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.video-card:hover .play-button {
  background-color: var(--primary);
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Responsive styles for video cards */
@media (max-width: 768px) {
  .video-thumbnail {
    aspect-ratio: 16 / 9;
  }
  
  .play-button {
    width: 40px;
    height: 40px;
  }
  
  .play-button svg {
    width: 24px;
    height: 24px;
  }
}

/* Responsive styles for ticker elements */
@media (max-width: 768px) {
  .ticker-last-updated {
    display: none;
  }
  
  .fallback-warning {
    position: static;
    margin-top: 0.5rem;
    font-size: 0.65rem;
  }
  
  .crypto-ticker-container {
    height: 40px;
  }
  
  .crypto-item {
    padding: 0 0.75rem;
  }
  
  .crypto-item img {
    width: 20px;
    height: 20px;
    margin-right: 0.4rem;
  }
  
  .crypto-name {
    display: none;
  }
  
  .crypto-symbol {
    margin-right: 0.4rem;
  }
}