/* Shared styles for the year-by-year "Most Viewed Songs" pages (Punjabi + Indian) */

.page-container { max-width: 1100px; margin: 0 auto; padding: 20px; }

/* Hero */
.hero-section {
    text-align: center; padding: 30px 20px;
    background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(251,191,36,0.02));
    border-radius: 20px; margin-bottom: 25px; border: 1px solid rgba(251,191,36,0.2);
}
.hero-section h1 { font-size: 2rem; color: var(--accent, #fbbf24); margin-bottom: 10px; line-height: 1.2; }
.hero-section h1 span { color: var(--text-primary, #fff); }
.hero-subtitle { color: var(--text-secondary, #aaa); font-size: 1rem; margin-bottom: 18px; }

/* Punjabi / Indian category toggle */
.cat-toggle { display: inline-flex; gap: 8px; background: rgba(0,0,0,0.2); padding: 6px; border-radius: 30px; margin-bottom: 18px; }
.cat-btn {
    padding: 9px 22px; border-radius: 24px; text-decoration: none; font-weight: 600; font-size: 0.92rem;
    color: var(--text-secondary, #aaa); transition: all 0.2s; border: 1px solid transparent;
}
.cat-btn:hover { color: var(--accent, #fbbf24); }
.cat-btn.active { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #000; }

/* Year selector */
.year-selector { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; padding: 0 10px; }
.year-btn {
    padding: 10px 18px; border: 2px solid var(--border-color, #333); background: var(--bg-card, #1a1a2e);
    color: var(--text-secondary, #aaa); border-radius: 25px; cursor: pointer; font-size: 0.9rem;
    font-weight: 600; text-decoration: none; transition: all 0.2s;
}
.year-btn:hover { border-color: var(--accent, #fbbf24); color: var(--accent, #fbbf24); transform: translateY(-2px); }
.year-btn.active { background: linear-gradient(135deg, #fbbf24, #f59e0b); border-color: #fbbf24; color: #000; }

/* Stats bar */
.stats-bar { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 20px; }
.stat-item { text-align: center; }
.stat-value { font-size: 1.5rem; font-weight: 700; color: var(--accent, #fbbf24); }
.stat-label { font-size: 0.8rem; color: var(--text-muted, #888); text-transform: uppercase; letter-spacing: 0.5px; }

/* Vote widget */
.vote-widget { max-width: 520px; margin: 0 auto 30px; background: linear-gradient(135deg, rgba(251,191,36,0.12), rgba(251,191,36,0.03)); border: 1px solid rgba(251,191,36,0.3); border-radius: 16px; padding: 20px; }
.vote-widget-header { text-align: center; margin-bottom: 15px; }
.vote-widget-title { color: var(--accent, #fbbf24); font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.vote-widget-title span { color: var(--text-primary, #fff); }
.vote-battle { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: 12px; align-items: center; }
.vote-contestant { background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 14px 10px; text-align: center; cursor: pointer; transition: all 0.2s; min-width: 0; }
.vote-contestant:hover { border-color: var(--accent, #fbbf24); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(251,191,36,0.15); }
.vote-contestant img { width: 100%; max-width: 140px; height: 80px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.vote-contestant-name { color: var(--text-primary, #fff); font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.vote-contestant-artist { color: var(--text-muted, #888); font-size: 0.75rem; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vote-contestant-stats { display: flex; justify-content: center; gap: 6px; margin-bottom: 10px; }
.vote-stat-win { background: rgba(74,222,128,0.15); color: #4ade80; padding: 3px 8px; border-radius: 10px; font-size: 0.7rem; font-weight: 600; }
.vote-stat-loss { background: rgba(248,113,113,0.15); color: #f87171; padding: 3px 8px; border-radius: 10px; font-size: 0.7rem; font-weight: 600; }
.vote-btn { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #000; border: none; padding: 10px 16px; border-radius: 8px; font-weight: 700; font-size: 0.8rem; cursor: pointer; width: 100%; transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.5px; }
.vote-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(251,191,36,0.4); }
.vote-vs { width: 40px; height: 40px; background: linear-gradient(135deg, #2d2d3a, #1a1a2e); border: 2px solid var(--accent, #fbbf24); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent, #fbbf24); font-weight: 700; font-size: 0.75rem; margin: 0 auto; }
.vote-feedback { text-align: center; padding: 12px; color: #4ade80; font-weight: 600; display: none; }
.vote-footer { text-align: center; margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); }
.vote-footer a { display: inline-block; padding: 12px 28px; background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #000; text-decoration: none; border-radius: 25px; font-weight: 700; font-size: 0.9rem; transition: all 0.2s; }
.vote-footer a:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(251,191,36,0.4); }
.vote-widget.loading .vote-battle { opacity: 0.5; pointer-events: none; }

/* SEO content */
.seo-content { background: var(--bg-card, #1a1a2e); border: 1px solid var(--border-color, #333); border-radius: 16px; padding: 25px; margin-top: 30px; }
.seo-content h2 { color: var(--accent, #fbbf24); font-size: 1.3rem; margin-bottom: 15px; }
.seo-content p { color: var(--text-secondary, #aaa); line-height: 1.7; margin-bottom: 15px; }
.seo-content h3 { color: var(--text-primary, #fff); font-size: 1.1rem; margin: 20px 0 10px; }
.year-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.year-link { padding: 6px 14px; background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3); border-radius: 20px; color: var(--accent, #fbbf24); font-size: 0.85rem; text-decoration: none; transition: all 0.2s; }
.year-link:hover { background: rgba(251,191,36,0.2); transform: translateY(-1px); }
.year-link.current { background: var(--accent, #fbbf24); color: #000; }

/* Add-song bar */
.add-song-bar { display: flex; align-items: center; justify-content: center; gap: 15px; flex-wrap: wrap; background: rgba(74, 222, 128, 0.08); border: 1px solid rgba(74, 222, 128, 0.25); border-radius: 12px; padding: 15px 20px; margin-bottom: 20px; }
.add-song-bar p { margin: 0; color: var(--text-secondary, #aaa); font-size: 0.95rem; }
.add-song-btn { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #4ade80, #22c55e); color: #000; padding: 10px 20px; border-radius: 25px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: all 0.2s; }
.add-song-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(74, 222, 128, 0.35); color: #000; }
.add-song-btn span { font-size: 1rem; }

/* Browse-by-year hub */
.year-hub { max-width: 1100px; margin: 0 auto; padding: 20px; }
.year-hub .hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 30px; }
.year-hub .hub-card { display: block; padding: 16px; border-radius: 14px; background: var(--bg-card, #1a1a2e); border: 1px solid var(--border-color, #333); text-decoration: none; transition: all 0.2s; }
.year-hub .hub-card:hover { border-color: var(--accent, #fbbf24); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.year-hub .hub-year { font-size: 1.5rem; font-weight: 800; color: var(--accent, #fbbf24); }
.year-hub .hub-sub { font-size: 0.78rem; color: var(--text-muted, #888); margin-top: 4px; }

/* Mobile */
@media (max-width: 768px) {
    .page-container, .year-hub { padding: 15px; }
    .hero-section { padding: 20px 15px; }
    .hero-section h1 { font-size: 1.5rem; }
    .stats-bar { gap: 20px; }
    .stat-value { font-size: 1.2rem; }
    .year-selector { gap: 6px; }
    .year-btn { padding: 8px 14px; font-size: 0.85rem; }
    .cat-btn { padding: 8px 16px; font-size: 0.85rem; }
    .vote-widget { padding: 15px; }
    .vote-battle { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); gap: 8px; }
    .vote-contestant { padding: 12px 8px; }
    .vote-contestant img { height: 65px; }
    .vote-contestant-name { font-size: 0.78rem; }
    .vote-vs { width: 34px; height: 34px; font-size: 0.65rem; }
    .seo-content { padding: 20px 15px; }
    #mytable thead th:nth-child(6), #mytable tbody td:nth-child(6) { display: none !important; }
}
@media (max-width: 480px) {
    .hero-section h1 { font-size: 1.3rem; }
    .vote-contestant img { height: 55px; }
    .year-btn { padding: 6px 12px; font-size: 0.8rem; }
}
