/**
 * Bravo Stand-Up Comedy - Main Stylesheet
 * Dark theme (#0A0A0A) with orange accent (#FE9F12)
 * System font stack, no external fonts
 * Mobile-first responsive design
 */

/* ============================================
   VARIABLES
   ============================================ */
:root {
    --bg-primary: #0A0A0A;
    --bg-secondary: #141414;
    --bg-card: #141414;
    --accent: #FE9F12;
    --accent-hover: #E08F10;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #666666;
    --border: #2A2A2A;
    --border-light: #333333;
    --success: #4CAF50;
    --error: #f44336;
    --radius: 3px;
    --radius-lg: 6px;
    --max-width: 1200px;
    --header-height: 72px;
}

/* ============================================
   BASE & TYPOGRAPHY
   ============================================ */
body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 700;
}

h1 { font-size: clamp(28px, 5vw, 48px); }
h2 { font-size: clamp(22px, 4vw, 36px); }
h3 { font-size: clamp(18px, 3vw, 24px); }

p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Ensure page content is always visible — no fade-in delays */
.page-content {
    opacity: 1;
}

/* Accent color for headings */
.accent { color: var(--accent); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent-hover);
    opacity: 1;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: #000;
    opacity: 1;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    display: none;
    font-size: 24px;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 2px;
}

/* Show logo text fallback when image fails to load or is hidden */
.logo img:not([src]) ~ .logo-text,
.logo img[src=""] ~ .logo-text,
.logo img[style*="display:none"] ~ .logo-text,
.logo img[style*="display: none"] ~ .logo-text {
    display: flex !important;
}

/* Accessibility skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: #000;
    padding: 8px 16px;
    z-index: 100;
    transition: top .2s;
}
.skip-link:focus {
    top: 0;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all .2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    opacity: 1;
}

.nav-link.active {
    color: var(--accent);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 20px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.mobile-header-lang {
    display: none !important;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 20px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.lang-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 16px;
    transition: all .2s;
}

.lang-btn.active {
    background: var(--accent);
    color: #000;
}

.lang-btn:hover:not(.active) {
    color: var(--text-primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all .3s;
    border-radius: 2px;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    flex-direction: column;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    z-index: 40;
}

.mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-link {
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all .2s;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    opacity: 1;
}

.mobile-lang-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 20px;
    border: 1px solid var(--border);
    margin: 16px auto 0;
    justify-content: center;
    width: fit-content;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer-section {
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-city-link {
    color: var(--text-secondary);
    font-size: 15px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all .2s;
}

.footer-city-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    opacity: 1;
}

.footer-social {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-social-links a {
    color: var(--text-secondary);
    font-size: 15px;
}

.footer-social-links a:hover {
    color: var(--accent);
    opacity: 1;
}

.footer-qr {
    text-align: center;
}

.footer-qr img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.qr-caption {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.admin-link {
    color: var(--text-muted);
    font-size: 13px;
}

.admin-link:hover {
    color: var(--accent);
}

.placeholder-text {
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   HOMEPAGE
   ============================================ */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #141414 0%, #0A0A0A 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(32px, 6vw, 64px);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero h1 .accent {
    color: var(--accent);
    display: block;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 22px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 32px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all .3s;
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent);
    display: block;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   ABOUT SECTION (Homepage)
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text {
    font-size: 17px;
    line-height: 1.8;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.about-highlights .stat-card {
    padding: 24px;
}

.about-highlights .stat-number {
    font-size: 36px;
}

/* Featured Shows */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all .3s;
}

.event-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.event-card-poster {
    width: 100%;
    aspect-ratio: 3/4;
    max-height: 300px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.event-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-body {
    padding: 20px;
}

.event-card-date {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-card-date .lang-badge,
.event-row-meta .lang-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 700;
    /* Background and color set dynamically via inline styles */
}

.event-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.event-card-venue {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.event-card-actions {
    display: flex;
    gap: 8px;
}

.event-card-actions .btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
}

/* Teaser Sections */
.teaser-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.teaser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.teaser-content h2 {
    margin-bottom: 20px;
}

.teaser-content p {
    margin-bottom: 24px;
    font-size: 17px;
    line-height: 1.7;
}

.teaser-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.teaser-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

/* ============================================
   SHOWS PAGE
   ============================================ */
.page-header {
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.page-header h1 {
    margin-bottom: 12px;
}

.page-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* Filter Bar */
.filter-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: var(--header-height);
    z-index: 30;
}

.filter-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 80px;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.filter-pill {
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}

.filter-pill:hover {
    border-color: var(--border-light);
    color: var(--text-primary);
}

.filter-pill.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: 600;
}

/* City Accordion */
.city-group {
    margin-bottom: 8px;
}

.city-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .2s;
    user-select: none;
}

.city-group-header:hover {
    border-color: var(--border-light);
}

.city-group-header.active {
    border-color: var(--accent);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.city-group-title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.city-event-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.city-group-arrow {
    transition: transform .3s;
    color: var(--text-muted);
}

.city-group-header.active .city-group-arrow {
    transform: rotate(180deg);
}

.city-group-body {
    display: none;
    border: 1px solid var(--border);
    border-top: none;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    overflow: hidden;
}

.city-group-body.open {
    display: block;
}

/* Event Row (shows page) */
.event-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    transition: background .2s;
}

.event-row:last-child {
    border-bottom: none;
}

.event-row:hover {
    background: rgba(254, 159, 18, 0.03);
}

.event-row-poster {
    width: 120px;
    height: 160px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-primary);
}

.event-row-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-row-info h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.event-row-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-row-meta span {
    font-size: 14px;
    color: var(--text-secondary);
}

.event-row-meta .event-date {
    font-weight: 600;
    color: var(--text-primary);
}

.event-row-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 140px;
}

.event-row-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    max-width: 500px;
    margin: 0 auto;
}

.empty-state h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ============================================
   COMEDIANS PAGE
   ============================================ */
.comedians-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.comedian-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all .3s;
}

.comedian-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.comedian-card-image {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-secondary);
}

.comedian-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.comedian-card:hover .comedian-card-image img {
    transform: scale(1.05);
}

.comedian-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
}

.comedian-card:hover .comedian-card-overlay {
    opacity: 1;
}

.comedian-card-name {
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
}

/* Comedian Detail */
.comedian-detail {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 48px;
    align-items: start;
}

.comedian-detail-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    max-width: 400px;
}

.comedian-detail-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.comedian-detail-info h1 {
    margin-bottom: 20px;
}

.comedian-detail-info p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.comedian-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.comedian-social a {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 14px;
}

.comedian-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    opacity: 1;
}

/* ============================================
   GALLERIES PAGE
   ============================================ */
.galleries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 3 / 4;
    cursor: pointer;
    transition: all .3s;
}

.gallery-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

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

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.3) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.gallery-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.gallery-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   GALLERY CAROUSEL
   ============================================ */

/* Main carousel stage */
.gallery-carousel {
    max-width: 600px;
    margin: 0 auto;
    user-select: none;
}

.gallery-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    max-height: 70vh;
    cursor: pointer;
}

.gallery-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity .2s;
}

.gallery-stage img.fade {
    opacity: 0;
}

/* Carousel arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10,10,10,0.7);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all .2s;
    -webkit-tap-highlight-color: transparent;
}

.gallery-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }

.gallery-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Carousel info bar */
.gallery-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4px 12px;
}

.gallery-counter {
    font-size: 14px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.gallery-caption-text {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    flex: 1;
    padding: 0 16px;
    min-height: 20px;
}

/* Thumbnail strip */
.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 85px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.5;
    transition: all .2s;
    background: var(--bg-secondary);
}

.gallery-thumb:hover {
    opacity: 0.8;
}

.gallery-thumb.active {
    border-color: var(--accent);
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.gallery-lightbox.open {
    display: flex;
}

.gallery-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.gallery-lightbox .gallery-arrow {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
}

.gallery-lightbox .gallery-arrow:hover {
    background: var(--accent);
}

.gallery-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all .2s;
}

.gallery-lightbox-close:hover {
    background: rgba(255,255,255,0.25);
}

.gallery-lightbox-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    background: rgba(0,0,0,0.6);
    padding: 8px 20px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Swipe hint on mobile */
.gallery-swipe-hint {
    display: none;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .gallery-carousel {
        max-width: 100%;
    }
    .gallery-stage {
        max-height: 60vh;
    }
    .gallery-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .gallery-arrow.prev { left: 6px; }
    .gallery-arrow.next { right: 6px; }
    .gallery-thumb {
        width: 52px;
        height: 69px;
    }
    .gallery-swipe-hint {
        display: block;
    }
    .gallery-lightbox img {
        max-width: 95vw;
        max-height: 80vh;
    }
}

/* ============================================
   TOUR CHINA & CORPORATE PAGES
   ============================================ */
.content-page {
    max-width: 800px;
    margin: 0 auto;
}

.content-page h2 {
    margin-top: 48px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.content-page h2:first-child {
    margin-top: 0;
}

.content-page ul {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}

.content-page ul li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
}

.content-page ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.service-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all .3s;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.service-card h3 {
    color: var(--accent);
    margin-bottom: 12px;
}

.service-card p {
    margin: 0;
    font-size: 15px;
}

/* Process Steps */
.process-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 32px 0;
}

.process-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.process-step-number {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
}

.process-step-content h3 {
    margin-bottom: 8px;
}

.process-step-content p {
    margin: 0;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.contact-item p,
.contact-item a {
    font-size: 17px;
    color: var(--text-primary);
}

.contact-item a:hover {
    color: var(--accent);
    opacity: 1;
}

.contact-qr {
    text-align: center;
}

.contact-qr img {
    width: 200px;
    height: 200px;
    border-radius: var(--radius);
    margin: 0 auto 12px;
    border: 1px solid var(--border);
}

.contact-qr-caption {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ============================================
   ADMIN STYLES
   ============================================ */
.admin-body {
    background: var(--bg-primary);
    min-height: 100vh;
}

.admin-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    margin-bottom: 32px;
}

.admin-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-nav a {
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    border-radius: var(--radius);
    transition: all .2s;
}

.admin-nav a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    opacity: 1;
}

.admin-nav a.active {
    background: var(--accent);
    color: #000;
    font-weight: 600;
}

/* Stats Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.stat-box-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-box-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

/* Tables */
.data-table-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
}

.data-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.data-table-header h3 {
    font-size: 16px;
    margin: 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 20px;
    text-align: left;
    font-size: 14px;
}

.data-table th {
    background: rgba(255,255,255,0.02);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.data-table td {
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

.data-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

.data-table .actions {
    display: flex;
    gap: 8px;
}

.data-table .actions a {
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 4px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
}

.data-table .actions a:hover {
    border-color: var(--accent);
    opacity: 1;
}

/* Forms */
.form-container {
    max-width: 700px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    transition: border-color .2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
}

.checkbox-group label {
    margin: 0;
    font-weight: 400;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.file-upload {
    padding: 24px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all .2s;
}

.file-upload:hover {
    border-color: var(--accent);
}

.file-upload input[type="file"] {
    display: none;
}

/* Social Links Repeater */
.social-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link-row {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 12px;
    align-items: center;
}

.btn-add,
.btn-remove {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.btn-add {
    background: var(--accent);
    color: #000;
}

.btn-remove {
    background: transparent;
    color: var(--error);
    border: 1px solid var(--error);
}

.btn-add:hover {
    background: var(--accent-hover);
}

.btn-remove:hover {
    background: var(--error);
    color: #fff;
}

/* Flash Messages */
.flash {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}

.flash-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.flash-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 8px;
}

.login-box p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ============================================
   BACK LINK
   ============================================ */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.back-link:hover {
    color: var(--accent);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .about-highlights {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .comedians-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .merch-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .galleries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .teaser-grid {
        grid-template-columns: 1fr;
    }
    
    .teaser-image {
        order: -1;
        max-height: 300px;
    }
    
    .teaser-image img {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .main-nav,
    .lang-toggle {
        display: none;
    }

    .mobile-header-lang {
        display: flex !important;
        margin: 0 auto;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-nav {
        display: flex;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .comedians-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .merch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .galleries-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        min-height: 70vh;
        padding: 60px 16px;
    }
    
    .section {
        padding: 48px 0;
    }
    
    .event-row {
        grid-template-columns: 80px 1fr;
        gap: 16px;
    }
    
    .event-row-poster {
        width: 80px;
        height: 107px;
    }
    
    .event-row-actions {
        grid-column: 1 / -1;
        flex-direction: row;
    }
    
    .comedian-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .comedian-detail-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .social-link-row {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        gap: 0;
        flex-wrap: nowrap;
        align-items: center;
    }

    .filter-label {
        display: none;
    }

    .filter-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px 0;
        gap: 6px;
    }

    .filter-pills::-webkit-scrollbar {
        display: none;
    }

    .filter-pill {
        padding: 5px 12px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .filter-bar {
        padding: 8px 0;
    }
    
    .process-step {
        gap: 16px;
    }
    
    .footer-social {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .merch-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .comedians-grid {
        grid-template-columns: 1fr;
    }
    
    .event-card-actions {
        flex-direction: column;
    }
    
    .event-card-actions .btn {
        width: 100%;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   MERCHANDISE PAGE
   ============================================ */
.merch-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.merch-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all .3s;
}

.merch-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.merch-card-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
}

.merch-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.merch-card:hover .merch-card-image img {
    transform: scale(1.05);
}

.merch-card-body {
    padding: 20px;
}

.merch-card-category {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(254, 159, 18, 0.12);
    color: var(--accent);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.merch-card-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.merch-card-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.merch-size-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-primary);
}

.merch-card-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 16px;
}

.merch-card-btn {
    width: 100%;
    text-align: center;
}

/* ============================================
   COMING SOON
   ============================================ */
.coming-soon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 80px 24px;
    text-align: center;
}

.coming-soon-content h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 20px;
}

.coming-soon-content p {
    font-size: clamp(16px, 2.5vw, 22px);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .filter-bar,
    .btn,
    .mobile-menu-btn {
        display: none !important;
    }
    
    body {
        background: #fff;
        color: #000;
    }
}
