:root {
    --bg-main: #05040b;
    --bg-panel: #100f1b;
    --bg-panel-alt: #171629;

    --accent-purple: #7f4cff;
    --accent-violet: #b66cff;
    --accent-teal: #3dd1b8;
    --accent-gold: #f9d66c;
    --accent-red: #ff4f5a;

    --text-main: #f7f5ff;
    --text-muted: #a7a3c5;

    --border-soft: rgba(255,255,255,0.14);
    --border-strong: rgba(255,255,255,0.42);

    --shadow-soft: 0 16px 40px rgba(0,0,0,0.75);
    --shadow-hard: 0 24px 60px rgba(0,0,0,0.9);

    --cookie-bg: rgba(10,8,20,0.96);
}

/* RESET */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at top, #312060 0%, #070514 48%, #020106 100%);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    min-height: 100vh;
}

/* ROOT LAYOUT */

#page-root.theme-lucha {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-main {
    flex: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.7rem 1rem 2.6rem;
}

/* BUTTONS */

.btn {
    border-radius: 999px;
    border: none;
    padding: 0.58rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.btn-primary {
    background: linear-gradient(120deg, var(--accent-purple), var(--accent-violet));
    color: #120d24;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    filter: brightness(1.08);
}

.btn-secondary {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-strong);
    color: var(--text-main);
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
}

/* HEADER — Mask Spotlight + Flag */

.site-header.lucha-header {
    background:
        radial-gradient(circle at top left, #3f2685 0%, transparent 60%),
        radial-gradient(circle at top right, #3b244b 0%, transparent 55%),
        #05030a;
    border-bottom: 2px solid rgba(255,255,255,0.12);
    box-shadow: var(--shadow-hard);
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.1rem 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.7rem;
}

.lucha-header-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.mask-orbit {
    position: relative;
    width: 90px;
    height: 90px;
}

.mask-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(126,82,255,0.85) 0%, transparent 55%);
    opacity: 0.9;
    filter: blur(4px);
}

.mask-circle {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.75);
    background:
        radial-gradient(circle at 30% 20%, #f9d66c 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, #3dd1b8 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, #130f1f 0%, #05030a 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0,0,0,0.9);
}

.mask-placeholder {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.85);
}

.lucha-header-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.lucha-name {
    margin: 0;
    font-size: 1.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: linear-gradient(110deg, #ffffff, #f9d66c, #e3b7ff);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 12px rgba(0,0,0,0.9);
}

.lucha-tagline {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-teal);
}

.lucha-subline {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lucha-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.lucha-flag-badge {
    position: relative;
    width: 120px;
    height: 60px;
    border-radius: 0.8rem;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 10px 26px rgba(0,0,0,0.9);
    background: #111;
}

.flag-stripes {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #006341 0 33%, #ffffff 33% 66%, #ce1126 66% 100%);
}

.flag-emblem {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.55);
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.lucha-header-meta {
    font-size: 0.75rem;
    text-align: right;
}

.meta-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.meta-value {
    display: block;
    margin-top: 0.12rem;
    color: var(--accent-gold);
}

.lucha-header-bottom-glow {
    height: 5px;
    background: linear-gradient(90deg, #7f4cff, #b66cff, #3dd1b8);
}

/* SECTIONS */

.section {
    margin-top: 2rem;
    border-radius: 1.2rem;
    background:
        radial-gradient(circle at top, #252041 0%, #0a0715 70%);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    padding: 1.4rem 1.4rem 1.7rem;
}

.section-header {
    margin-bottom: 0.9rem;
}

.section-title {
    margin: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.lucha-title-pill {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--accent-purple), var(--accent-teal));
    color: #0b0714;
    box-shadow: 0 8px 20px rgba(0,0,0,0.8);
}

.section-subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* HERO / BIO LAYOUT */

.lucha-hero {
    display: grid;
    grid-template-columns: minmax(0, 45%) minmax(0, 55%);
    gap: 1.4rem;
    align-items: flex-start;
    background:
        radial-gradient(circle at top left, #34266e 0%, transparent 60%),
        radial-gradient(circle at bottom right, #231c3f 0%, transparent 70%),
        #0a0714;
}

.hero-media {
    position: relative;
}

.hero-main-image img,
.hero-main-placeholder {
    width: 100%;
    border-radius: 1.1rem;
    border: 2px solid rgba(255,255,255,0.75);
    box-shadow: var(--shadow-hard);
}

.hero-main-placeholder {
    min-height: 260px;
    background:
        radial-gradient(circle at top, #3a285f 0%, #120d23 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.lucha-promotions-strip {
    margin-top: 0.7rem;
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
}

.promo-chip img {
    height: 60px;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 8px 18px rgba(0,0,0,0.9);
    cursor: pointer;
    background: #0b0714;
}

/* BIO SIDE */

.hero-bio.lucha-bio {
    position: relative;
    padding-top: 0.2rem;
}

.bio-top-label {
    display: inline-block;
    padding: 0.16rem 0.65rem;
    background: rgba(125,83,255,0.2);
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-gold);
}

.wrestler-name {
    margin: 0.4rem 0 0;
    font-size: 1.5rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.wrestler-tagline {
    margin: 0.12rem 0 0.7rem;
    font-size: 0.9rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-teal);
}

.bio-text p {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-main);
}

.bio-placeholder {
    color: var(--text-muted);
}

.lucha-socials {
    margin-top: 0.9rem;
}

.lucha-socials h3 {
    margin: 0 0 0.3rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.lucha-socials ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.lucha-socials a {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.38);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-teal);
    text-decoration: none;
}

.cta-row {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* PROMO GRID */

.lucha-promos {
    background:
        radial-gradient(circle at top, #2a234a 0%, #080512 70%);
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.promo-item {
    position: relative;
}

.promo-thumb,
.placeholder-img.placeholder-promo {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 0.9rem;
    border: 1px solid rgba(255,255,255,0.32);
    background: radial-gradient(circle at top, #3a2f5d 0%, #120d22 65%);
    box-shadow: 0 14px 30px rgba(0,0,0,0.9);
    object-fit: cover;
}

.placeholder-img.placeholder-promo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

/* VIDEO MASONRY */

.lucha-videos {
    background:
        radial-gradient(circle at top, #31245f 0%, #090514 75%);
}

.masonry-grid {
    column-count: 3;
    column-gap: 1rem;
}

@media (max-width: 900px) {
    .masonry-grid {
        column-count: 2;
    }
}
@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }
}

.video-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.video-item-inner {
    border-radius: 0.9rem;
    border: 1px solid rgba(255,255,255,0.22);
    background: #070412;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.video-frame {
    position: relative;
    width: 100%;
    background: #000;
}

.video-horizontal .video-frame {
    aspect-ratio: 16 / 9;
}

.video-vertical .video-frame {
    aspect-ratio: 9 / 16;
}

.video-frame iframe,
.video-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.video-overlay-mask {
    position: relative;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-teal));
}

/* BOOKINGS */

.lucha-bookings {
    background:
        radial-gradient(circle at top, #2e234e 0%, #070412 75%);
}

.calendar-toggle-row {
    margin-bottom: 0.7rem;
    display: flex;
    justify-content: flex-end;
}

.calendar-toggle-tabs {
    display: flex;
    gap: 0.5rem;
}

.toggle-btn {
    background: rgba(9,6,20,0.92);
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    color: var(--text-main);
    padding: 0.36rem 0.9rem;
    font-size: 0.75rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.toggle-btn.active {
    background: linear-gradient(120deg, var(--accent-purple), var(--accent-teal));
    color: #120d24;
    border-color: transparent;
}

.calendar-wrapper {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* CALENDAR GRID */

.booking-calendar {
    min-height: 450px;
}

.booking-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-size: 0.86rem;
}

.calendar-nav-btn {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(8,5,20,0.95);
    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.7rem;
}

.calendar-day-name {
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    padding: 0.22rem 0;
}

.calendar-cell,
.calendar-cell-empty {
    min-height: 78px;
    min-width: 125px;
    border-radius: 0.7rem;
    padding: 0.3rem;
    position: relative;
}

.calendar-cell {
    background:
        radial-gradient(circle at top, #352b62 0%, #0b0718 70%);
    border: 1px solid rgba(255,255,255,0.14);
}

.calendar-cell-empty {
    background: transparent;
    border: none;
    box-shadow: none;
}

.calendar-cell-date {
    font-size: 0.7rem;
    opacity: 0.85;
}

.calendar-poster {
    margin-top: 0.16rem;
    border-radius: 0.45rem;
    padding: 0.3rem 0.34rem;
    background: #f9d66c;
    color: #181326;
    box-shadow: 0 5px 14px rgba(0,0,0,0.8);
    cursor: pointer;
    max-width: 112px;
    overflow: hidden;
}

.calendar-poster-title {
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-poster-sub {
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* DESKTOP LIST */

.booking-list-desktop {
    border-radius: 0.9rem;
    border: 1px dashed rgba(255,255,255,0.38);
    padding: 0.7rem 0.8rem;
    font-size: 0.8rem;
}

.booking-month-group {
    margin-bottom: 0.6rem;
}

.booking-month-heading {
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-gold);
    margin-bottom: 0.22rem;
}

.booking-list-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.32rem 0;
    border-bottom: 1px dashed rgba(255,255,255,0.16);
    cursor: pointer;
}

.booking-list-date {
    font-size: 0.8rem;
    color: var(--accent-teal);
    min-width: 90px;
}

.booking-list-title {
    font-size: 0.86rem;
}

/* MOBILE LIST */

.booking-list-mobile {
    border-radius: 0.9rem;
    border: 1px dashed rgba(255,255,255,0.28);
    padding: 0.6rem 0.7rem;
    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, #31275d 0%, #070412 78%);
    border-radius: 1rem;
    padding: 1.1rem 1.2rem 1.3rem;
    max-width: 460px;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: var(--shadow-hard);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 0.3rem;
    right: 0.45rem;
    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.84rem;
    margin: 0.16rem 0;
}

.booking-modal-description {
    margin-top: 0.45rem;
    font-size: 0.86rem;
}

.booking-modal-actions {
    margin-top: 0.7rem;
    display: flex;
    gap: 0.5rem;
}

/* BOOKING FORM */

.booking-form-section.lucha-form {
    background:
        radial-gradient(circle at top, #32285f 0%, #05030c 80%);
}

.booking-form {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 0.8rem;
    margin-top: 0.3rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.form-row label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.form-row input,
.form-row textarea {
    border-radius: 0.55rem;
    border: 1px solid rgba(255,255,255,0.23);
    background: rgba(7,5,18,0.96);
    color: var(--text-main);
    padding: 0.42rem 0.58rem;
    font-size: 0.86rem;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: 1px solid var(--accent-purple);
}

.required {
    color: var(--accent-red);
    margin-left: 0.2rem;
}

.captcha-code {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-actions {
    margin-top: 0.2rem;
}

.alert {
    border-radius: 0.7rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.82rem;
    margin-bottom: 0.7rem;
}

.alert-success {
    background: rgba(61, 209, 184, 0.08);
    border: 1px solid rgba(61, 209, 184, 0.7);
}

.alert-error {
    background: rgba(255, 79, 90, 0.08);
    border: 1px solid rgba(255, 79, 90, 0.7);
}

.alert-error ul {
    margin: 0;
    padding-left: 1.1rem;
}

/* COOKIE BANNER */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--cookie-bg);
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 0.85rem 1rem;
    z-index: 40;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner-inner {
    max-width: 1180px;
    margin: 0 auto;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* COOKIE MODAL DETAILS */

.modal-intro {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.modal-section h3 {
    font-size: 0.9rem;
    margin: 0.4rem 0 0.2rem;
}

.modal-section p {
    font-size: 0.8rem;
    margin: 0 0 0.25rem;
}

/* Cookie modal toggle cleanup */
.toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.3rem;
    position: relative;
}

.toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    width: 46px;
    height: 22px;
    background: #5a5a7c;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
}

.toggle-slider::after {
    content: "";
    width: 18px;
    height: 18px;
    position: absolute;
    background: #fff;
    border-radius: 999px;
    top: 2px;
    left: 2px;
    transition: transform 0.25s ease;
}

.toggle input:checked + .toggle-slider::after {
    transform: translateX(24px);
}

.toggle-label {
    font-size: 0.85rem;
}

.modal-actions {
    margin-top: 0.7rem;
}

/* LIGHTBOX */

.lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
}

.lightbox-backdrop.hidden {
    display: none;
}

.lightbox {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 0.9rem;
    border: 2px solid rgba(255,255,255,0.75);
    box-shadow: var(--shadow-hard);
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -32px;
    right: 0;
    font-size: 1.8rem;
    border: none;
    background: none;
    color: #fff;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
    cursor: pointer;
}

.lightbox-prev {
    left: -40px;
}

.lightbox-next {
    right: -40px;
}

.lightbox-zoom {
    position: absolute;
    bottom: -36px;
    right: 0;
    border-radius: 999px;
    border: none;
    padding: 0.25rem 0.7rem;
    font-size: 0.8rem;
    cursor: pointer;
}

/* FOOTER */

.site-footer.lucha-footer {
    border-top: 1px solid rgba(255,255,255,0.16);
    background: #05030a;
    padding: 0.75rem 1rem;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* UTIL */

.hidden {
    display: none !important;
}

.desktop-only {
    display: none;
}

.mobile-only {
    display: none;
}

/* RESPONSIVE */

@media (min-width: 768px) {
    .desktop-only {
        display: block;
    }
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .lucha-header-right {
        align-items: flex-start;
    }
    .lucha-hero {
        grid-template-columns: minmax(0,1fr);
    }
    .page-main {
        padding: 1.2rem 0.7rem 2.2rem;
    }
}
.mask-orbit {
    flex-shrink: 0;
}

@media (max-width: 700px) {

    .header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.4rem;
    }

    .lucha-header-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .lucha-header-right {
        align-items: center;
        text-align: center;
    }
    .lucha-header-meta {
        text-align: center;
    }
    .lucha-flag-badge {
        margin: 0 auto;
    }
}


