:root {
    --bg-main: #050307;
    --bg-panel: #0d0710;
    --bg-panel-alt: #120910;
    --accent-fire1: #ffb200;
    --accent-fire2: #ff5a00;
    --accent-fire3: #d40000;
    --text-main: #f5f5f5;
    --text-muted: #b3a9c0;
    --border-metal: #c2c6cf;
    --border-metal-dark: #7b808a;
    --shadow-hard: 0 16px 40px rgba(0, 0, 0, 0.9);
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.7);
    --danger: #ff3b3b;
    --success: #2ecc71;
    --highlight: #ffe066;
    --grad-fire: linear-gradient(120deg, #ffb200, #ff5a00, #d40000);
}

/* Global Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at top, #1a0909 0%, #050307 55%, #000000 100%);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    min-height: 100vh;
}

/* Layout */

#page-root.theme-retro {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-main {
    flex: 1;
    padding: 1.5rem 1rem 2.5rem;
    max-width: 1120px;
    margin: 0 auto;
}

/* Buttons */

.btn {
    border-radius: 999px;
    border: none;
    padding: 0.55rem 1.3rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.btn-primary {
    background-image: var(--grad-fire);
    color: #12050a;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    filter: brightness(1.08);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-metal-dark);
    color: var(--text-main);
}

.btn-link {
    background: none;
    border: none;
    color: var(--highlight);
    padding: 0;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
}

.btn-ghost.retro-btn,
.btn-primary.retro-btn {
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.8);
}

.btn-ghost {
    background: rgba(5, 5, 5, 0.7);
    border: 1px solid var(--border-metal);
    color: var(--highlight);
}

/* HEADER — Nitro style */

.site-header.retro-header {
    background: linear-gradient(135deg, #2b0505, #000000);
    border-bottom: 2px solid #ff5a00;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9);
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 1rem 0.5rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.retro-logo-block {
    display: flex;
    flex-direction: column;
}

.retro-logo-main {
    font-size: 2.3rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ffd16f, #ffffff, #ffd16f);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(255, 216, 132, 0.6),
                 0 0 20px rgba(0,0,0,1);
}

.retro-logo-tagline {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffd9ad;
}

.retro-tv-rating {
    border-radius: 0.4rem;
    border: 2px solid var(--border-metal);
    background: radial-gradient(circle at top, #444a54 0%, #151820 60%);
    padding: 0.4rem 0.7rem;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 0 12px rgba(0,0,0,0.7);
}

.retro-tv-rating span {
    display: block;
}

.header-fire-line {
    height: 6px;
    background: linear-gradient(90deg, #ffb200, #ff5a00, #d40000, #ffb200);
}

/* SECTIONS */

.section {
    margin-top: 2.2rem;
    border-radius: 1rem;
    background: radial-gradient(circle at top, #1b0c11 0%, #060307 70%);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: var(--shadow-soft);
    padding: 1.3rem 1.3rem 1.6rem;
}

.section-header {
    margin-bottom: 0.9rem;
}

.section-title {
    margin: 0;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.flame-title {
    background-image: var(--grad-fire);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(255, 90, 0, 0.7);
}

.section-subtitle {
    margin: 0.3rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* PROMO GRID — trading card sheet */

.promos-section {
    border-radius: 1.4rem;
    background: radial-gradient(circle at top, #24080b 0%, #050307 65%);
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.9rem;
    margin-top: 0.6rem;
}

.promo-item {
    position: relative;
}

.promo-thumb,
.placeholder-img.placeholder-promo {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 0.7rem;
    border: 1px solid var(--border-metal-dark);
    background: radial-gradient(circle at top, #333844 0%, #151821 65%);
    box-shadow: 0 10px 26px rgba(0,0,0,0.85);
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-img.placeholder-promo span {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* HERO / BIO MAGAZINE LAYOUT */

.retro-hero {
    margin-top: 2.4rem;
    display: grid;
    grid-template-columns: minmax(0, 46%) minmax(0, 54%);
    gap: 1.2rem;
    align-items: flex-start;
    background: linear-gradient(135deg, #12060b 0%, #050307 50%, #12060b 100%);
}

.hero-media {
    position: relative;
}

.hero-main-image img,
.hero-main-placeholder {
    width: 100%;
    border-radius: 1.2rem;
    border: 2px solid var(--border-metal);
    box-shadow: var(--shadow-hard);
    display: block;
}

.hero-main-placeholder {
    min-height: 260px;
    background: radial-gradient(circle at top, #3d4250 0%, #151821 60%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-main-placeholder span {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.promotion-logos.retro-promo-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.promotion-logo img {
    height: 32px;
    border-radius: 0.3rem;
    border: 1px solid rgba(255,255,255,0.15);
}

.retro-bio {
    position: relative;
    padding-top: 0.4rem;
}

.bio-header-tape {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: repeating-linear-gradient(-45deg, #ffd16f, #ffd16f 6px, #402010 6px, #402010 12px);
    color: #ffffff;
    text-shadow: black 2px 1px;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 0.4rem;
    margin-bottom: 0.4rem;
}

.wrestler-name {
    margin: 0.2rem 0 0;
    font-size: 1.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(0,0,0,0.9);
}

.wrestler-tagline {
    margin: 0.15rem 0 0.7rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--highlight);
}

.bio-text p {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-main);
}

.bio-placeholder {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.retro-socials {
    margin-top: 0.8rem;
}

.retro-socials h3 {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.retro-socials ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.retro-socials a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--highlight);
    text-decoration: none;
}

.merch-cta {
    margin-top: 0.85rem;
}

.booking-cta {
    margin-top: 0.6rem;
}

/* VIDEO WALL */

.videos-section.retro-videos {
    margin-top: 2.4rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
    align-items: start;
}

.video-item {
    border-radius: 0.8rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.16);
    background: #050509;
    box-shadow: var(--shadow-soft);
}

.video-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.video-horizontal .video-frame {
    aspect-ratio: 16 / 9;
}

.video-vertical .video-frame {
    aspect-ratio: 9 / 16;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.crt-frame {
    position: relative;
}

.crt-overlay {
    pointer-events: none;
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 50%, transparent 50%),
        radial-gradient(circle at 50% 0, rgba(255,255,255,0.08), transparent 60%);
    background-size: 100% 2px, 100% 100%;
    mix-blend-mode: soft-light;
    opacity: 0.55;
}

/* BOOKINGS — torn poster style */

.bookings-section.retro-bookings {
    margin-top: 2.4rem;
}

.booking-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.calendar-nav-btn {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(10,7,13,0.9);
    color: var(--text-main);
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.booking-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
    font-size: 0.72rem;
}

.calendar-day-name {
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    padding: 0.2rem 0;
}

.calendar-cell {
    min-height: 80px;
    min-width: 125px;
    border-radius: 0.5rem;
    background: radial-gradient(circle at top, #221018 0%, #050307 70%);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.3rem;
    position: relative;
}

.calendar-cell-empty {
    background: transparent;
    border: none;
    box-shadow: none;
}

.calendar-cell-date {
    font-size: 0.7rem;
    opacity: 0.8;
}

.calendar-poster {
    margin-top: 0.12rem;
    border-radius: 0.4rem;
    padding: 0.25rem 0.3rem;
    background:
      repeating-linear-gradient(-45deg, #ffb200 0, #ffb200 4px, #7c2b05 4px, #7c2b05 8px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.7);
    cursor: pointer;
}

/* Lock the poster box so it can never exceed a safe width */
.calendar-poster {
    
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    display: block;
    justify-self: center;
}

/* Titles wrap cleanly without enlarging the grid cell */
.calendar-poster-title,
.calendar-poster-sub {
    overflow-wrap: break-word;   /* break long words */
    word-break: break-word;      /* hard break as fallback */
    white-space: normal;
    max-width: 100%;
    line-height: 1.1;
}

/* Optional: truncate to 2 lines for titles */
.calendar-poster-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;          /* limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.72rem;             /* normal readable size */
    font-weight: 800;
}

/* Optional: truncate to 1 line for subtitle */
.calendar-poster-sub {
    display: -webkit-box;
    -webkit-line-clamp: 1;          /* limit to 1 line */
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.68rem;
}

/* MOBILE BOOKINGS LIST */

.booking-list-mobile {
    margin-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 0.5rem;
}

.booking-list-item {
    padding: 0.5rem 0.1rem;
    border-bottom: 1px dashed rgba(255,255,255,0.15);
    cursor: pointer;
}

.booking-list-date {
    font-size: 0.8rem;
    color: var(--highlight);
}

.booking-list-title {
    font-size: 0.8rem;
}

.no-bookings {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* BOOKING MODAL */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-backdrop.hidden {
    display: none;
}

.modal {
    background: radial-gradient(circle at top, #2a121a 0%, #050307 75%);
    border-radius: 0.9rem;
    padding: 1rem 1.1rem 1.2rem;
    max-width: 460px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: var(--shadow-hard);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 0.35rem;
    right: 0.4rem;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 1.4rem;
    cursor: pointer;
}

.booking-modal-date,
.booking-modal-venue,
.booking-modal-address,
.booking-modal-belltime {
    font-size: 0.82rem;
    margin: 0.15rem 0;
}

.booking-modal-description {
    margin-top: 0.4rem;
    font-size: 0.85rem;
}

.booking-modal-actions {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.5rem;
}

/* BOOKING FORM */

.booking-form-section.retro-form {
    margin-top: 2.4rem;
    background: radial-gradient(circle at top, #2a151c 0%, #050307 75%);
    border: 1px solid rgba(255,255,255,0.12);
}

.booking-form {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 0.7rem;
    margin-top: 0.2rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.form-row label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.form-row input,
.form-row textarea {
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(4,2,6,0.95);
    color: var(--text-main);
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: 1px solid #ff5a00;
}

.required {
    color: var(--danger);
    margin-left: 0.2rem;
}

.captcha-code {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.alert {
    border-radius: 0.6rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.8rem;
    margin-bottom: 0.7rem;
}

.alert-success {
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.6);
}

.alert-error {
    background: rgba(255, 59, 59, 0.08);
    border: 1px solid rgba(255, 59, 59, 0.6);
}

.alert-error ul {
    margin: 0;
    padding-left: 1.1rem;
}

/* COOKIE BANNER */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: radial-gradient(circle at top, #221018 0%, #050307 60%);
    border-top: 1px solid rgba(255,255,255,0.14);
    padding: 0.8rem 1rem;
    z-index: 40;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner-inner {
    max-width: 1120px;
    margin: 0 auto;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* LIGHTBOX */

/* LIGHTBOX — FIXED so image never exceeds viewport */
.lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
    padding: 1rem; /* prevents edge sticking */
}

.lightbox-backdrop.hidden {
    display: none;
}

.lightbox {
    position: relative;
    max-width: 100vw;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90vw;       /* fit screen width */
    max-height: 90vh;      /* fit screen height */
    width: auto;
    height: auto;
    border-radius: 0.8rem;
    border: 2px solid var(--border-metal);
    box-shadow: var(--shadow-hard);
    object-fit: contain;   /* keeps full image visible */
}

/* CLOSE BUTTON */
.lightbox-close {
    position: absolute;
    top: 0.5rem;
    right: 0.7rem;
    font-size: 2rem;
    border: none;
    background: none;
    color: #fff;
    cursor: pointer;
    z-index: 100;
}

/* NAV BUTTONS */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 0.6rem 0.9rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
}

.lightbox-prev {
    left: 0.5rem;
}

.lightbox-next {
    right: 0.5rem;
}

/* ZOOM BUTTON */
.lightbox-zoom {
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    border-radius: 999px;
    border: none;
    padding: 0.4rem 0.9rem;
    background: rgba(0,0,0,0.6);
    font-size: 0.85rem;
    color: #fff;
    cursor: pointer;
    z-index: 100;
}


/* FOOTER */

.site-footer.retro-footer {
    border-top: 1px solid rgba(255,255,255,0.12);
    background: #050307;
    padding: 0.7rem 1rem;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* UTIL */

.hidden {
    display: none;
}

/* RESPONSIVE */

@media (max-width: 800px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .retro-hero {
        grid-template-columns: minmax(0,1fr);
    }
}

@media (max-width: 600px) {
    .page-main {
        padding: 1.1rem 0.7rem 2.2rem;
    }
    .promo-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
    .booking-calendar-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        font-size: 0.7rem;
    }
}
/* Desktop-only toggle */
.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .desktop-only {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 1rem;
    }
    .mobile-only {
        display: none !important;
    }
}

/* Mobile only list */
@media (max-width: 767px) {
    #booking-calendar,
    #booking-list-desktop {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }
}

/* Toggle button styles */
.toggle-btn {
    background: #1a1a1a;
    border: 1px solid #444;
    color: #eee;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin-left: 0.5rem;
    cursor: pointer;
}

.toggle-btn.active {
    background: #ff6a00;
    border-color: #ff6a00;
    color: #000;
}
/* Prevent calendar section from collapsing when empty */
.calendar-wrapper {
    min-height: 500px;    /* adjust to taste */
    display: flex;
    flex-direction: column;
}

/* Ensure the calendar grid always takes space */
.booking-calendar {
    min-height: 450px;    /* keeps the width & layout stable */
}

.masonry-grid {
    column-count: 3;
    column-gap: 1rem;
    width: 100%;
}

@media (max-width: 1000px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 650px) {
    .masonry-grid {
        column-count: 1;
    }
}

.masonry-grid .video-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;

    border-radius: 0.8rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.16);
    background: #050509;
    box-shadow: var(--shadow-soft);
}

/* Frame still respects aspect-ratio logic */
.video-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.video-horizontal .video-frame {
    aspect-ratio: 16 / 9;
}

.video-vertical .video-frame {
    aspect-ratio: 9 / 16;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.placeholder-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
