:root {
    --primary: #b91c1c;
    --primary-hover: #991b1b;
    --accent: #b91c1c;
    --secondary: #6c5ce7;
    --nav-red: #b91c1c;
    --header-black: #0d0d0d;
    --text: #1a202c;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --light-bg: #f7fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --card-shadow: 0 4px 6px rgba(0,0,0,0.07);
    --card-shadow-hover: 0 12px 24px rgba(0,0,0,0.12);
    /* Homepage / full-width sections */
    --content-max-width: 1470px;
    /* All non-home content pages (About, Mission, Contact, Pricing, Voluntary Contribution, etc.) */
    --content-page-max-width: 80rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}
/* Skip link: visible on focus for accessibility */
.skip-link {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 9999;
    padding: 0.5rem 1rem;
    background: var(--white);
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-100%);
    transition: transform 0.2s;
}

    .skip-link:focus {
        transform: translateY(0);
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }

body.site-body {
    font-family: 'Open Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;
    background: #F2F8F8;
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

    body.site-body.page-home {
        background: #fff;
    }

    body.site-body main {
        flex: 1 0 auto;
    }

    body.site-body .site-footer {
        flex-shrink: 0;
    }

body.playlist-detail-page {
    display: block;
    min-height: auto
}

    body.playlist-detail-page main {
        flex: none
    }

img, video, iframe {
    max-width: 100%;
}

video, iframe {
    height: auto;
}

.container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 2rem
}

/* Global content width for every page except home; responsive via padding at small viewports */
body:not(.home-page) .container {
    max-width: var(--content-page-max-width);
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Header - same on homepage and playlist (match gagoniri.com spacing) */
.site-header {
    background: var(--header-black);
    position: sticky;
    top: 0;
    z-index: 100;
    margin: 0;
    padding: 0;
}
/* Top bar: thin, icons on the right only */
.topbar {
    background: var(--header-black);
    color: #fff;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

    .topbar .topbar-inner {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 12px 24px;
        max-width: var(--content-max-width);
        margin: 0 auto;
        gap: 1rem;
    }

.topbar-greeting {
    margin-right: auto;
}

.user-greeting {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.topbar-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-icon {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .topbar-icon:hover {
        opacity: 1;
    }

.topbar-admin-link {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Logo section: separate block with generous padding */
.logo-section {
    background: var(--header-black);
    padding: 0;
    margin: 0;
}

.logo-section-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 14px 24px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.site-header-banner {
    max-height: 100px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-logo {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.2;
}

.brand-logo-img {
    display: block;
    height: auto;
    max-height: 68px;
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc2626;
    letter-spacing: -0.02em;
    text-shadow: 0 0 1px #fff, 0 0 2px rgba(255,255,255,0.5);
}

.brand-tagline {
    font-size: 0.8rem;
    color: #dc2626;
    font-weight: 600;
    margin-top: 2px;
    margin-left: 0;
    text-shadow: 0 0 1px #fff, 0 0 2px rgba(255,255,255,0.4);
}

/* Red navigation bar - no gap below topbar */
.nav-red {
    background: var(--nav-red);
    width: 100%;
    margin: 0;
    padding: 0;
}

    .nav-red .nav-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 24px;
        max-width: var(--content-max-width);
        margin: 0 auto;
        gap: 1rem;
    }
/* Hamburger: hidden on desktop, shown on tablet/mobile */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s;
}

    .nav-hamburger:hover {
        background: rgba(0,0,0,0.35)
    }

.nav-hamburger-bar {
    display: block;
    width: 22px;
    height: 2.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s;
}

.nav-red.nav-open .nav-hamburger-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav-red.nav-open .nav-hamburger-bar:nth-child(2) {
    opacity: 0
}

.nav-red.nav-open .nav-hamburger-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.nav-search-row {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 1rem;
    min-width: 0;
}

.nav-red .main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

    .nav-red .main-nav a {
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        padding: 0.35rem 0.55rem;
        border-radius: 6px;
        transition: background-color 0.2s,color 0.2s,transform 0.2s;
        font-size: 0.85rem;
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }

        .nav-red .main-nav a:hover {
            color: #fff1f2;
            background: rgba(0,0,0,0.28);
            transform: translateY(-1px);
        }

.nav-right-actions,
.nav-search-row .search-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-search-row .search-wrap {
    flex: 1;
    min-width: 0
}

.nav-icon-btn {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    opacity: 0.95;
}

    .nav-icon-btn:hover {
        opacity: 1;
    }

.nav-auth-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.35rem 0;
    transition: opacity 0.2s;
}

    .nav-auth-link:hover {
        opacity: 0.9;
    }

.nav-logout-form {
    display: inline;
    margin: 0;
}

.nav-logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.search-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

    .search-box input {
        padding: 0.4rem 2.25rem 0.4rem 0.75rem;
        border-radius: 4px;
        border: none;
        min-width: 280px;
        height: 100%;
        min-height: 40px;
        font-size: 0.85rem;
        background: rgba(255,255,255,0.95);
        color: #1a202c;
    }

        .search-box input::placeholder {
            color: #64748b;
        }

    .search-box .search-icon {
        position: absolute;
        left: 0.6rem;
        color: #64748b;
        pointer-events: none;
    }

    .search-box .search-icon-right {
        left: auto;
        right: 0.6rem;
    }

    .search-box .search-submit {
        position: absolute;
        right: 4px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        padding: 4px;
        cursor: pointer;
        color: #64748b;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .search-box .search-submit:hover {
            color: #1a202c;
        }

.nav-red .search-box .search-submit {
    color: rgba(0,0,0,0.6)
}

    .nav-red .search-box .search-submit:hover {
        color: #1a202c
    }

/* Search dropdown - top 5 videos as you type */
.search-wrap {
    position: relative;
    display: flex;
    align-self: stretch;
    overflow: visible;
}

.nav-red .nav-inner,
.nav-red {
    overflow: visible;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    max-height: 320px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
}

    .search-dropdown.search-dropdown-visible {
        display: block;
    }

.search-dropdown-empty {
    padding: 12px 14px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.search-dropdown-section {
    padding: 0;
}

    .search-dropdown-section:not(:first-child) {
        border-top: 1px solid #e5e7eb;
    }

.search-dropdown-section-title {
    padding: 8px 12px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 1;
}

.search-dropdown-section-list .search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}

    .search-dropdown-item:last-child {
        border-bottom: none;
    }

    .search-dropdown-item:hover {
        background: #f9fafb;
    }

.search-dropdown-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 36px;
    border-radius: 4px;
    overflow: hidden;
    background: #e5e7eb;
}

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

.search-dropdown-title {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.search-dropdown-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.search-dropdown-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.25;
}

.search-dropdown-timestamp-row {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 0.75rem;
    margin-top: 2px;
}

.search-dropdown-timestamp-label {
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.search-dropdown-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

    .search-dropdown-time::before {
        display: none;
    }

/* Static page content (About Us, Our Mission, Contact Us, Pricing) – horizontal margin from .container only */
.page-content-section {
    padding: 2.5rem 0 4rem;
    background: #fff;
}

body:not(.page-home) .page-content-section {
    background: #F2F8F8;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: var(--text);
    text-align: center;
}

.page-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
}

    .page-body p {
        margin: 0 0 1rem 0
    }

        .page-body p:last-child {
            margin-bottom: 0
        }

    .page-body strong {
        font-weight: 600
    }

    .page-body a {
        color: var(--primary);
        text-decoration: none
    }

        .page-body a:hover {
            text-decoration: underline
        }

/* Pricing page: body links should not underline on hover */
.page-pricing .page-body a,
.page-pricing .page-body a:hover,
.page-pricing .page-body a:focus {
    text-decoration: none;
}

/* Pricing page: voluntary contribution link should look like plain text (no special styling) */
.page-pricing .pricing-voluntary-link,
.page-pricing .pricing-voluntary-link:hover,
.page-pricing .pricing-voluntary-link:focus {
    font-weight: inherit;
    text-transform: none;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.page-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.page-text-left .page-col-text {
    order: 1
}

.page-text-left .page-col-image {
    order: 2
}

.page-text-right .page-col-text {
    order: 2
}

.page-text-right .page-col-image {
    order: 1
}

.page-col-text {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

    .page-col-text .page-body {
        flex: 1;
        min-height: 0;
    }

.page-col-image {
    min-width: 0;
    min-height: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

    .page-col-image .page-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        display: block;
    }

/* About Us: title, text and image – match WordPress/Elementor transition exactly */
.page-about .page-title,
.page-about .page-col-text,
.page-about .page-col-image {
    transition: background .3s,border .3s,border-radius .3s,box-shadow .3s,transform var(--e-transform-transition-duration,.4s);
}
    /* Override scroll animation: use .4s + ease (match Elementor; overrides .5s ease-out from animations.css) */
    .page-about .page-title.animate-on-scroll,
    .page-about .page-col-text.animate-on-scroll,
    .page-about .page-col-image.animate-on-scroll {
        transition: background .3s,border .3s,border-radius .3s,box-shadow .3s,opacity .3s,transform var(--e-transform-transition-duration,.4s) ease;
    }
/* Zoom keyframe animations (zoomInUp/Left/Right) use animation, not transition */
.page-about .animate-on-scroll.anim-zoom-in-up,
.page-about .animate-on-scroll.anim-zoom-in-left,
.page-about .animate-on-scroll.anim-zoom-in-right {
    transition: none;
}

/* Donation section (Pricing page) */
.donation-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.donation-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text);
}

.donation-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 1.25rem 0;
}

.donation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.donation-form {
    margin: 0
}

.donation-btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

    .donation-btn:hover {
        background: #991b1b;
        transform: scale(1.02)
    }

    .donation-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none
    }

.donation-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ========== Contact Us page – form only, centered, attractive ========== */
.page-contact .page-content-section {
    background: var(--light-bg)
}

.page-contact-form-only {
    max-width: 32rem;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.page-contact .contact-form-section {
    margin-top: 0;
    padding-top: 0;
}

.contact-form-card {
    max-width: 36rem;
    margin: 0 auto;
    padding: 2rem 2.25rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
}

.contact-form-card-centered {
    max-width: 28rem;
    margin: 0 auto;
    padding: 2.25rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(185,28,28,0.06);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

    .contact-form-card-centered::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg,var(--primary),var(--primary-hover));
    }

.contact-form-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.35rem 0;
    color: var(--text);
}

.contact-form-card-centered .contact-form-title {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.contact-form-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.contact-form-message {
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-form-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.contact-form-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

    .contact-form-error a.contact-error-email {
        color: #b91c1c;
        font-weight: 600;
        text-decoration: underline;
    }

        .contact-form-error a.contact-error-email:hover {
            color: #991b1b
        }

.contact-form .form-group {
    margin-bottom: 1.25rem
}

.contact-form .form-actions {
    margin-top: 1.5rem
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-submit-btn {
    min-width: 10rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.contact-form-card-centered .contact-submit-btn {
    width: 100%;
    min-width: 0;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-size: 1.05rem;
}

.form-label .required {
    color: #dc2626
}

/* ========== Pricing page – text left, two images stacked right (two-col like About/Mission) ========== */
.page-pricing .page-content-section {
    background: var(--light-bg)
}

.pricing-body p {
    margin: 0 0 1rem 0;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text)
}

    .pricing-body p:last-child {
        margin-bottom: 0
    }

.pricing-voluntary-link {
    font-weight: inherit;
    text-transform: none;
    letter-spacing: normal;
    color: inherit;
    text-decoration: none;
    border-bottom: none;
    box-shadow: none;
}

    .pricing-voluntary-link:hover {
        color: inherit;
        border-bottom: none;
    }

.pricing-intro-block {
    max-width: var(--content-page-max-width);
    margin: 0 auto 1.5rem;
}

.pricing-two-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 48rem;
    margin: 0 auto;
}

    .pricing-two-images > div {
        min-width: 0
    }

.pricing-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 4/3;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.pricing-intro-text {
    max-width: 36rem;
    margin: 0 auto 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    text-align: center;
}

.page-pricing .donation-section-card {
    margin-top: 2.5rem;
    padding: 2rem 2.25rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.page-pricing .donation-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text);
}

.page-pricing .donation-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.donation-amounts {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.donation-amount-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg,var(--primary) 0%,var(--primary-hover) 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    min-height: 3.25rem;
}

    .donation-amount-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(185,28,28,0.35);
    }

    .donation-amount-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none
    }

.donation-amount-popular {
    background: linear-gradient(135deg,#991b1b 0%,#7f1d1d 100%);
    box-shadow: 0 4px 14px rgba(185,28,28,0.25);
    position: relative;
}

    .donation-amount-popular::after {
        content: "Popular";
        position: absolute;
        top: -8px;
        right: 8px;
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        background: #fff;
        color: var(--primary);
        padding: 0.2rem 0.5rem;
        border-radius: 4px;
    }

.donation-custom-wrap {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.donation-custom-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.donation-custom-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.donation-currency-symbol {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.donation-custom-input {
    width: 6.5rem;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.donation-custom-submit {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.page-pricing .donation-hint {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media(max-width:768px) {
    .page-two-col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        min-height: 0;
    }
        /* Mobile: image first, then text (both text-left and text-right layouts) */
        .page-two-col .page-col-image {
            order: 0;
            position: static;
            min-height: 200px
        }

        .page-two-col .page-col-text {
            order: 1
        }

        .page-two-col .page-col-image .page-image {
            position: static;
            width: 100%;
            height: auto;
            min-height: auto
        }
    /* Pricing: images first, then intro text */
    .page-pricing .container {
        display: flex;
        flex-direction: column
    }

    .page-pricing .page-title {
        order: 0
    }

    .page-pricing .pricing-two-images {
        order: 1;
        margin-bottom: 1rem
    }

    .page-pricing .pricing-intro-block {
        order: 2
    }
}

.site-header .container {
    padding: 0
}

.main-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

    .main-nav a {
        color: var(--text);
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 600;
        transition: color 0.3s;
        position: relative;
    }

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

/* Main content - same spacing below header on all pages */
main {
    margin: 0;
    padding: 0;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg,var(--primary) 0%,var(--primary-hover) 50%,#7f1d1d 100%);
    color: #fff;
    padding: 5rem 2rem;
    display: flex;
    align-items: center;
    gap: 4rem
}

.hero-content {
    flex: 1
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.6
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap
}

.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center
}

.hero-image {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3)
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center
}

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

    .btn-primary:hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(185,28,28,0.3)
    }

.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none
}

    .btn-loading::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 18px;
        height: 18px;
        margin: -9px 0 0 -9px;
        border: 2px solid rgba(255,255,255,0.4);
        border-top-color: #fff;
        border-radius: 50%;
        animation: page-loader-spin 0.7s linear infinite
    }

.btn-outline {
    border: 2px solid rgba(255,255,255,0.8);
    color: #fff;
    background: transparent;
    padding: 0.7rem 1.4rem
}

    .btn-outline:hover {
        background: rgba(255,255,255,0.1);
        border-color: #fff
    }

.btn-outline-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border)
}

    .btn-outline-secondary:hover {
        background: var(--light-bg);
        color: var(--text)
    }

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem
}

.btn-success {
    background: #059669;
    color: #fff
}

    .btn-success:hover {
        background: #047857;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(5,150,105,0.3)
    }

/* Form inputs - used on login, register, and across the site */
.form-card {
    max-width: 420px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border)
}

    .form-card.form-card-wide {
        max-width: 500px
    }

/* Choose membership: 3 plans per row, wider container */
.choose-membership-page .form-card.form-card-wide {
    max-width: 960px
}

.choose-membership-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.25rem
}

    .choose-membership-grid .choose-membership-card {
        max-width: none;
        min-width: 0
    }

@media(max-width:900px) {
    .choose-membership-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

@media(max-width:600px) {
    .choose-membership-grid {
        grid-template-columns: 1fr
    }
}

.form-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem
}

.form-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem
}

.form-group {
    margin-bottom: 1.25rem
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.4rem
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(0,102,204,0.15)
    }

    .form-control::placeholder {
        color: #94a3b8
    }

textarea.form-control {
    min-height: 100px;
    resize: vertical
}

.form-control.input-error {
    border-color: #dc2626
}

    .form-control.input-error:focus {
        box-shadow: 0 0 0 3px rgba(220,38,38,0.15)
    }

.form-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.35rem
}

.form-error,
.text-danger {
    font-size: 0.85rem;
    color: #dc2626;
    margin-top: 0.35rem
}

.form-validation-summary {
    margin-bottom: 1rem
}

    .form-validation-summary ul {
        list-style: none;
        padding: 0;
        margin: 0
    }

    .form-validation-summary li {
        font-size: 0.85rem;
        color: #dc2626;
        padding: 0.35rem 0
    }

.form-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem
}

.form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    accent-color: var(--primary);
    cursor: pointer
}

.form-check-label {
    font-size: 0.95rem;
    color: var(--text);
    cursor: pointer
}

.form-actions {
    margin-top: 1.5rem
}

    .form-actions .btn {
        width: 100%;
        padding: 0.85rem 1.25rem;
        font-size: 1rem
    }

.form-divider {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 1rem 0
}

.form-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none
}

    .form-link:hover {
        text-decoration: underline
    }

.form-card .form-demo-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--light-bg);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border)
}

    .form-card .form-demo-hint strong {
        color: var(--text)
    }

.form-alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    font-weight: 500
}

.form-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca
}

    .form-alert-error span {
        display: block
    }

        .form-alert-error span + span {
            margin-top: 0.35rem
        }

.form-alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0
}

.form-static {
    margin: 0;
    padding: 0.35rem 0;
    font-size: 1rem;
    color: #374151
}

/* Hero Section - 1 large left, 3 stacked right; equal height columns on desktop */
.hero-grid-section {
    padding: 0 0 0.5rem 0;
    background: #fff;
}

.hero-grid-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 1.5rem 24px 1.5rem;
    max-width: var(--content-max-width);
    margin: 0 auto;
    min-height: 520px;
    align-items: stretch;
}

.hero-large-item {
    flex: 0 0 calc(50% - 6px);
    min-width: 0;
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    height: 520px;
    background: #eee;
    transition: box-shadow 0.3s ease;
}

    .hero-large-item:hover {
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }

    .hero-large-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
/* Hero: play icon top-left; default transparent grey (like gagoniri.com), hover = site red */
.hero-play-btn-large {
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 56px;
    height: 56px;
    background: rgba(0,0,0,0.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.hero-large-item:hover .hero-play-btn-large {
    background: var(--primary);
    box-shadow: 0 2px 12px rgba(185,28,28,0.5);
}

.hero-play-btn-large .hero-play-triangle {
    width: 0;
    height: 0;
    margin-left: 5px;
    border-style: solid;
    border-width: 9px 0 9px 16px;
    border-color: transparent transparent transparent #fff;
    transition: border-color 0.25s ease;
}

.hero-large-item:hover .hero-play-btn-large .hero-play-triangle {
    border-left-color: #fff;
}

.hero-play-icon-small {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    z-index: 1;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.hero-small-item:hover .hero-play-icon-small {
    background: var(--primary);
    border-color: rgba(255,255,255,0.4);
}

.hero-play-icon-small::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 3px;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent #fff;
    transition: border-color 0.25s ease;
}

.hero-small-item:hover .hero-play-icon-small::before {
    border-left-color: #fff;
}

.hero-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg,transparent,rgba(0,0,0,0.8));
    color: #fff;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.25;
}

    .hero-caption.small {
        font-size: 0.9rem;
        padding: 8px 10px;
    }

.hero-small-grid {
    flex: 0 0 calc(50% - 6px);
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: 520px;
    align-self: stretch;
}

.hero-small-item:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: 1;
}

.hero-small-item:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.hero-small-item:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.hero-small-item {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    min-height: 0;
    background: #eee;
    transition: box-shadow 0.3s ease;
}

    .hero-small-item:hover {
        box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    }

    .hero-small-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.last-watched-title {
    /*text-transform:uppercase;*/
    font-weight: 800;
    font-size: 1.9rem;
}

@media(max-width:768px) {
    .hero-grid-container {
        flex-direction: column;
        min-height: 0;
        gap: 12px;
        padding: 12px 16px;
    }

    .hero-large-item {
        flex: none;
        height: 280px;
    }

    .hero-small-grid {
        flex: none;
        height: auto;
        gap: 8px;
    }

    .hero-small-item {
        flex: none;
        height: 120px;
    }
}

/* Last Watched Section */
.last-watched-section {
    background: #fff;
    padding: 1.5rem 2rem 1.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.last-watched-section--hidden {
    display: none;
}

.last-watched-section .container {
    padding: 0 2rem;
}

.last-watched-section .section-title {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    text-align: left;
}

.last-watched-thumbnails {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
}

    .last-watched-thumbnails::-webkit-scrollbar {
        height: 6px;
    }

    .last-watched-thumbnails::-webkit-scrollbar-track {
        background: #e5e7eb;
        border-radius: 3px;
    }

    .last-watched-thumbnails::-webkit-scrollbar-thumb {
        background: #9ca3af;
        border-radius: 3px;
    }

        .last-watched-thumbnails::-webkit-scrollbar-thumb:hover {
            background: #6b7280;
        }

.last-watched-thumb {
    flex: 0 0 auto;
    width: 180px;
    min-width: 180px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.2s,box-shadow 0.2s;
    border: 1px solid #e5e7eb;
}

    .last-watched-thumb:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(15,23,42,0.12);
    }

.last-watched-thumb-media {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    background: #f3f4f6;
    overflow: hidden;
}

.last-watched-thumb-title {
    display: block;
    padding: 0.6rem 0.65rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.1em;
}

.last-watched-empty {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
    flex: 1 1 auto;
    min-width: 100%;
}

.last-watched-view-all {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

    .last-watched-view-all:hover {
        text-decoration: underline
    }

/* Watch Later add button on playlist items */
.playlist-video-item {
    position: relative
}

.watch-later-add-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.7);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.9;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: opacity 0.2s,background 0.2s,transform 0.2s;
    touch-action: manipulation;
}

    .watch-later-add-btn:hover {
        opacity: 1;
        background: rgba(185,28,28,0.95);
        transform: scale(1.08);
    }

    .watch-later-add-btn:active {
        transform: scale(0.98)
    }

    .watch-later-add-btn:disabled {
        cursor: not-allowed;
        opacity: 0.8
    }

    .watch-later-add-btn.watch-later-add-btn--loading {
        cursor: wait
    }

    .watch-later-add-btn svg {
        display: block;
        flex-shrink: 0
    }
    /* In Watch Later (local or DB): green state, click to remove */
    .watch-later-add-btn.watch-later-add-btn--in-list {
        background: rgba(22,163,74,0.95);
        color: #fff
    }

        .watch-later-add-btn.watch-later-add-btn--in-list:hover {
            background: rgba(21,128,61,0.95)
        }

    .watch-later-add-btn.watch-later-add-btn--page.watch-later-add-btn--in-list {
        background: #16a34a;
        color: #fff
    }

        .watch-later-add-btn.watch-later-add-btn--page.watch-later-add-btn--in-list:hover {
            background: #15803d
        }
    /* Video detail page: pill button with label */
    .watch-later-add-btn.watch-later-add-btn--page {
        position: static;
        width: auto;
        height: auto;
        border-radius: 999px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        font-weight: 600;
        gap: 0.4rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        background: var(--primary);
        color: #fff;
    }

        .watch-later-add-btn.watch-later-add-btn--page:hover {
            background: #991b1b;
            transform: none;
            opacity: 1;
        }

        .watch-later-add-btn.watch-later-add-btn--page svg {
            width: 18px;
            height: 18px
        }

.video-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0 0.5rem 0;
}

.video-detail-title {
    margin: 0
}

/* Watch Later page */
.watch-later-page {
    padding: 2.5rem 0 3rem;
    background: #fff;
}

    .watch-later-page .container {
        padding: 0 2rem;
    }

    .watch-later-page .section-title {
        margin-bottom: 1.25rem;
    }

.watch-later-guest, .watch-later-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.watch-later-guest-text, .watch-later-empty-text {
    font-size: 1.1rem;
    color: var(--text);
    margin: 0 0 1rem 0
}

.watch-later-guest-sub, .watch-later-empty-hint {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0.75rem 0 0 0
}

.watch-later-guest-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.75rem;
}

.watch-later-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    cursor: pointer;
    border: 2px solid transparent;
}

.watch-later-btn--primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(185,28,28,0.25);
}

    .watch-later-btn--primary:hover {
        background: var(--primary-hover);
        border-color: var(--primary-hover);
        color: #fff;
        box-shadow: 0 4px 12px rgba(185,28,28,0.35);
        transform: translateY(-1px);
    }

.watch-later-btn--outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

    .watch-later-btn--outline:hover {
        background: rgba(185,28,28,0.08);
        color: var(--primary-hover);
        border-color: var(--primary-hover);
        transform: translateY(-1px);
    }

.watch-later-section-header {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 1.5rem 0 0.75rem 0;
}

    .watch-later-section-header:first-child {
        margin-top: 0
    }

.watch-later-sync-banner {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
}

.watch-later-sync-text {
    margin: 0;
    font-size: 1rem
}

.watch-later-sync-btn {
    margin-left: 0.5rem;
    vertical-align: middle
}

.watch-later-local-section {
    margin-top: 1rem
}

.watch-later-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
    gap: 1.25rem;
}

.watch-later-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s;
}

.watch-later-source-icon {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
}

.watch-later-source-icon--db {
    background: rgba(59,130,246,0.9);
}

.watch-later-source-icon--local {
    background: rgba(107,114,128,0.9);
}

.watch-later-source-icon svg {
    display: block
}

.watch-later-card:hover {
    box-shadow: 0 10px 24px rgba(0,0,0,0.1)
}

.watch-later-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit
}

.watch-later-card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    background: #f3f4f6;
    overflow: hidden;
}

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

.watch-later-card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watch-later-card-title {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    min-height: 3.5em;
}

.watch-later-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s,background 0.2s;
}

    .watch-later-remove:hover {
        opacity: 1;
        background: #b91c1c
    }

.search-results-section {
    padding: 24px 24px 48px;
    background: #fff;
}

    .search-results-section .section-title {
        margin-bottom: 0.5rem
    }

.search-query-info {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0
}

.search-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0
}

.search-no-results, .search-hint {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 1rem 0
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.search-result-card {
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s,border-color 0.2s;
    background: #fff;
}

    .search-result-card:hover {
        border-color: #d1d5db;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

.search-result-main-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.search-result-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #e5e7eb;
}

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

.search-result-info {
    padding: 12px;
}

    .search-result-info h3 {
        font-size: 0.95rem;
        font-weight: 600;
        margin: 0 0 4px 0;
        line-height: 1.3;
    }

.search-result-playlist {
    font-size: 0.8rem;
    color: var(--primary);
    display: block;
    margin-bottom: 2px;
}

.search-result-tags {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
}

.search-result-timestamps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0 12px 12px;
}

.search-result-timestamp-chip {
    text-decoration: none;
    font-size: 0.78rem;
    line-height: 1.2;
    color: #b91c1c;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
}

    .search-result-timestamp-chip:hover {
        background: #ffe4e6;
        border-color: #fda4af;
    }

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

/* Anatomy & Physiology Sections */
.playlist-category-section {
    background: #fff;
    padding: 2.5rem 2rem 3rem;
}

    .playlist-category-section .container {
        padding: 0 2rem;
    }

.anatomy-section, .physiology-section {
    background: #fff;
    padding: 2.5rem 2rem;
}

.physiology-section {
    background: #f9fafb;
}

    .anatomy-section .section-title,
    .physiology-section .section-title {
        text-align: center;
        font-size: 1.9rem;
        font-weight: 900;
        margin-bottom: 1.5rem;
    }

/* Playlists Grid - 6 per row, aligned with page content */
.playlists-grid {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 1.5rem;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.playlist-card {
    grid-column: span 1;
    grid-row: span 1;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    min-width: 0;
}

.physiology-section .playlist-card {
    background: var(--white)
}

.playlist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #d1d5db;
}

.playlist-thumb {
    position: relative;
    aspect-ratio: 3/4;
    width: 100%;
    overflow: hidden;
    background: #e5e7eb;
}

    .playlist-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
        display: block;
    }

.playlist-card:hover .playlist-thumb img {
    transform: scale(1.04)
}

.video-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.video-badge-play {
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 7px;
    border-color: transparent transparent transparent #fff;
    flex-shrink: 0;
}

.video-badge.badge-model {
    background: rgba(0,0,0,0.8);
}

.playlist-info {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-height: 48px;
}

    .playlist-info h3 {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text);
        word-break: break-word;
        margin: 0;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 1.25rem 0;
    letter-spacing: -0.02em;
    text-align: left;
}

.site-footer {
    background: #111111;
    color: #c4c4c4;
    padding: 0;
    width: 100%;
}

.footer-main {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    padding: 80px 2rem;
    max-width: var(--content-max-width);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.site-footer .footer-left {
    flex: 1;
    min-width: 0
}

.site-footer .footer-left-text {
    max-width: 70%;
}

.site-footer .footer-right {
    flex: 0 0 auto;
    width: 320px;
    display: flex;
    justify-content: flex-start;
    margin-top: calc(72px + 2rem)
}

.site-footer p {
    margin: 1.2rem 0;
    font-size: 0.9rem;
    line-height: 1.6
}

.brand-logo-footer {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    margin-bottom: 1rem;
    line-height: 1.2;
    max-width: 100%;
}

    .brand-logo-footer .brand-name {
        color: #dc2626;
        font-size: 1.4rem;
        font-weight: 700
    }

    .brand-logo-footer .brand-tagline {
        color: #fff;
        font-size: 0.8rem;
        margin-top: 2px;
        margin-left: 2px
    }

.brand-logo-img-footer {
    max-height: 72px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.footer-bullets {
    list-style: none;
    margin: 0.75rem 0 0 0;
    padding: 0;
    font-size: 0.9rem;
}

    .footer-bullets li {
        position: relative;
        padding-left: 1rem;
        margin: 0.35rem 0;
    }

        .footer-bullets li::before {
            content: "•";
            position: absolute;
            left: 0;
            color: #94a3b8;
        }

.footer-small-list {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.footer-small-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .footer-small-item img {
        width: 120px;
        height: 80px;
        object-fit: cover;
        border-radius: 6px;
        flex-shrink: 0;
    }

.footer-small-caption {
    font-size: 1rem;
    color: #cbd5e0
}

.footer-small-item-link {
    text-decoration: none;
    color: inherit
}

    .footer-small-item-link:hover .footer-small-caption {
        color: #fff
    }

.footer-bottom {
    background: #000000;
    padding: 15px 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    min-height: 56px;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #94a3b8;
}

.footer-voiceover-link {
    margin-left: auto;
    font-size: 0.8rem;
}

    .footer-voiceover-link a {
        color: #ff9e9e;
        text-decoration: none;
        font-weight: 600;
    }

        .footer-voiceover-link a:hover {
            text-decoration: underline;
        }

.top-btn {
    background: var(--nav-red);
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border: none;
    border-radius: 2px;
    transition: opacity 0.2s;
}

    .top-btn:hover {
        opacity: 0.9;
        color: #fff;
    }

.top-btn-fixed {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s, visibility 0.2s;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

    .top-btn-fixed.visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

.footer-bottom {
    position: relative
}

.footer-small-thumb {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-left: auto
}

    .footer-small-thumb img {
        width: 100%;
        border-radius: 8px;
        transition: transform 0.3s
    }

        .footer-small-thumb img:hover {
            transform: scale(1.05)
        }

/* ========== Responsive: large → small ========== */
/* Large tablet / small desktop */
@media(max-width:var(--content-max-width)) {
    .container {
        max-width: 100%;
        padding: 0 1.5rem
    }

    body:not(.home-page) .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem
    }

    .playlists-grid {
        grid-template-columns: repeat(4,1fr);
        gap: 1.3rem
    }

    .hero-grid-container, .nav-red .nav-inner, .logo-section-inner, .topbar .topbar-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem
    }

    .playlist-detail-page .playlist-main-row {
        padding: 0 1.5rem
    }

    .footer-bottom {
        padding-left: 1.5rem;
        padding-right: 1.5rem
    }
}

/* Tablet */
@media(max-width:1024px) {
    .container {
        padding: 0 1.5rem
    }

    body:not(.home-page) .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem
    }

    .playlists-grid {
        grid-template-columns: repeat(3,1fr);
        gap: 1.25rem
    }

    .last-watched-section, .playlist-category-section {
        padding: 2rem 1.5rem 2.5rem
    }

    .last-watched-section {
        padding: 1.25rem 1.5rem 1.5rem
    }

    .playlist-mid-section {
        padding: 2rem 1.5rem 2.5rem
    }

    .playlist-mid-inner {
        padding: 0 1.5rem
    }

    .footer-main {
        padding: 2rem 1.5rem
    }
    /* Site nav: hamburger + search always visible, then collapsible nav links */
    .nav-hamburger {
        display: flex;
        order: 0;
        width: 40px;
        height: 40px;
        padding: 8px
    }

    .nav-hamburger-bar {
        width: 18px;
        height: 2px
    }

    .nav-red.nav-open .nav-hamburger-bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg)
    }

    .nav-red.nav-open .nav-hamburger-bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg)
    }

    .nav-red .nav-inner {
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .nav-menu {
        order: 10
    }

    .nav-search-row {
        flex: 1 1 0;
        min-width: 0;
        order: 1;
        width: 100%;
        max-width: calc(100% - 52px);
    }

        .nav-search-row .search-wrap {
            width: 100%;
            max-width: 100%;
        }

        .nav-search-row .search-box {
            width: 100%;
            min-width: 0;
        }

            .nav-search-row .search-box input {
                min-width: 0;
                width: 100%;
                max-width: 100%;
                min-height: 38px;
                font-size: 0.9rem;
            }

    .nav-menu {
        flex: 1 1 100%;
        flex-direction: column;
        align-items: stretch;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.25s ease, opacity 0.2s;
        order: 10;
    }

    .nav-red.nav-open .nav-menu {
        max-height: 70vh;
        opacity: 1;
        overflow: visible;
        padding-top: 0.5rem;
        margin-top: 0.25rem;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    .nav-red .main-nav {
        flex-direction: column;
        gap: 0;
        align-items: stretch
    }

        .nav-red .main-nav a {
            padding: 0.6rem 0.85rem;
            border-radius: 6px;
            font-size: 0.9rem;
        }
}

/* Mobile landscape / small tablet */
@media(max-width:768px) {
    .container {
        padding: 0 1rem
    }

    body:not(.home-page) .container {
        padding-left: 1rem;
        padding-right: 1rem
    }

    .topbar .topbar-inner {
        padding: 0.5rem 1rem;
        gap: 0.5rem
    }

    .topbar-icons {
        gap: 0.5rem
    }

    .logo-section-inner {
        padding: 10px 1rem 12px;
        justify-content: flex-start
    }

    .logo-section .site-header-banner {
        display: none
    }

    .site-header-banner {
        max-height: 58px
    }

    .brand-logo-img {
        max-height: 56px
    }

    .brand-logo-img-footer {
        max-height: 110px
    }

    .site-footer p {
        font-size: 0.82rem
    }

    .footer-copyright {
        font-size: 0.75rem
    }

    .footer-bullets {
        font-size: 0.85rem
    }

    .nav-red .nav-inner {
        padding: 0.45rem 0.75rem;
        gap: 0.4rem
    }

    .nav-search-row .search-box input {
        min-height: 36px;
        font-size: 0.875rem
    }

    .nav-red .main-nav a {
        font-size: 0.9rem;
        padding: 0.6rem 0.85rem
    }

    .hero-grid-section {
        padding-bottom: 0.25rem
    }

    .hero-grid-container {
        flex-direction: column;
        min-height: 0;
        gap: 0.75rem;
        padding: 1rem
    }

    .hero-large-item {
        flex: none;
        width: 100%;
        max-height: none;
        min-height: 200px;
        aspect-ratio: 16/9;
        height: auto
    }

    .hero-small-grid {
        flex: none;
        height: auto;
        gap: 0.5rem;
        min-height: 0
    }

    .hero-small-item {
        flex: none;
        height: 100px
    }

    .hero-caption {
        font-size: 0.85rem;
        padding: 8px 10px
    }

        .hero-caption.small {
            font-size: 0.85rem;
            padding: 6px 8px
        }

    .hero-banner {
        flex-direction: column;
        padding: 2rem 1rem
    }

    .hero-title {
        font-size: 1.75rem
    }

    .hero-subtitle {
        font-size: 0.95rem
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 0.75rem
    }

    .btn-lg {
        width: 100%;
        padding: 0.85rem 1rem;
        font-size: 1rem
    }

    .section-title {
        font-size: 1.35rem;
        margin-bottom: 1rem
    }

    .anatomy-section .section-title, .physiology-section .section-title {
        font-size: 1.65rem;
        font-weight: 900;
        text-align: center
    }

    .last-watched-section, .playlist-category-section, .anatomy-section, .physiology-section, .watch-later-page {
        padding: 1.5rem 1rem 2rem
    }

    .last-watched-section {
        padding: 1rem 1rem 1.25rem
    }

        .last-watched-section .container, .playlist-category-section .container, .watch-later-page .container {
            padding: 0 1rem
        }

    .playlists-grid {
        grid-template-columns: repeat(3,1fr);
        gap: 0.65rem
    }

    .playlist-card {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06)
    }

    .playlist-thumb {
        aspect-ratio: 4/3;
        background: #f3f4f6
    }

        .playlist-thumb img {
            object-fit: contain
        }

    .playlist-info {
        padding: 0.5rem 0.5rem;
        min-height: 44px
    }

        .playlist-info h3 {
            font-size: 0.8rem;
            line-height: 1.35;
            -webkit-line-clamp: 2
        }

    .video-badge {
        top: 6px;
        left: 6px;
        padding: 4px 6px;
        font-size: 0.6rem;
        gap: 3px;
        border-radius: 4px
    }

    .video-badge-play {
        border-width: 3px 0 3px 5px
    }

    .page-content-section {
        padding: 1.5rem 0 2.5rem
    }

    .form-card {
        padding: 1.25rem;
        max-width: 100%
    }

    .contact-form-card {
        padding: 1.5rem 1.25rem;
        margin: 0
    }

    .contact-form-card-centered {
        padding: 1.75rem 1.25rem;
        max-width: 100%
    }

    body:not(.home-page) .page-contact-form-only {
        padding-left: 1rem;
        padding-right: 1rem
    }

    .page-contact-form-only {
        padding: 0 0.5rem 1.5rem
    }

    .contact-form-row {
        grid-template-columns: 1fr
    }

    .page-two-col .page-col-image .page-image {
        height: auto;
        min-height: auto;
        object-fit: cover
    }
    /* Mobile: image column first, then text (stack order); ensure image visible even if scroll animation hasn't run */
    .page-two-col .page-col-image {
        order: 0;
        opacity: 1 !important;
        transform: none !important
    }

        .page-two-col .page-col-image .page-image {
            opacity: 1 !important;
            transform: none !important;
            visibility: visible !important
        }

    .page-two-col .page-col-text {
        order: 1
    }
    /* Pricing mobile: images row first, then intro text (flex order) */
    .page-pricing .container {
        display: flex;
        flex-direction: column
    }

    .page-pricing .page-title {
        order: 0
    }

    .page-pricing .pricing-two-images {
        order: 1;
        margin-bottom: 1rem
    }

    .page-pricing .pricing-intro-block {
        order: 2
    }

    .pricing-two-images {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        max-width: 100%
    }

    .pricing-intro-block {
        margin-bottom: 1rem
    }

    .pricing-body p {
        font-size: 1rem
    }

    .donation-amounts {
        grid-template-columns: repeat(2,1fr);
        gap: 0.6rem
    }

    .donation-amount-btn {
        min-height: 2.75rem;
        padding: 0.85rem 0.75rem;
        font-size: 1rem
    }

    .page-pricing .donation-section-card {
        padding: 1.5rem 1.25rem;
        margin: 1.5rem 0 0
    }

    .donation-custom-inputs {
        flex-direction: column;
        align-items: stretch
    }

    .donation-custom-input {
        width: 100%
    }

    .donation-custom-submit {
        width: 100%
    }

    .footer-main {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
        text-align: left
    }

    .site-footer .footer-left {
        flex: 1;
        max-width: 100%;
        text-align: left
    }

        .site-footer .footer-left .brand-logo-footer {
            max-width: 75%;
            display: inline-flex
        }

    .site-footer .footer-left-text {
        max-width: 100%
    }

    .site-footer .footer-right {
        width: 100%;
        flex: none;
        display: flex;
        justify-content: flex-start;
        margin-top: 0
    }

    .brand-logo-img-footer {
        max-height: 120px
    }

    .site-footer p {
        font-size: 0.8rem
    }

    .footer-copyright {
        font-size: 0.72rem
    }

    .footer-small-list {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 0.75rem
    }

    .footer-small-item {
        flex-direction: column;
        flex: 1 1 0;
        min-width: 0;
        align-items: center;
        text-align: center
    }

        .footer-small-item img {
            width: 100%;
            max-width: 140px;
            height: auto;
            aspect-ratio: 3/2
        }

    .footer-small-caption {
        white-space: normal;
        word-wrap: break-word;
        text-align: center;
        margin-top: 0.35rem;
        line-height: 1.35;
        font-size: 0.9rem
    }

    .footer-bullets {
        list-style: none;
        padding-left: 0;
        font-size: 0.82rem
    }

        .footer-bullets li {
            padding-left: 0
        }

            .footer-bullets li::before {
                display: none
            }

    .footer-bottom {
        padding: 0.5rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: flex-start;
        text-align: left
    }

    .site-modal-box {
        max-width: 100%;
        margin: 0.5rem;
        max-height: calc(100vh - 1rem)
    }

    #site-modal-body {
        padding: 1rem
    }

    .auth-tab-headers {
        margin-bottom: 0.75rem
    }

    .auth-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem
    }

    .playlist-detail-page .playlist-main-row {
        padding: 0 1rem
    }
}

/* Mobile portrait */
@media(max-width:480px) {
    .container {
        padding: 0 0.75rem
    }

    body:not(.home-page) .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem
    }

    .footer-bottom {
        padding-left: 0.75rem;
        padding-right: 0.75rem
    }

    .topbar .topbar-inner {
        padding: 0.4rem 0.75rem;
        gap: 0.4rem
    }

    .logo-section-inner {
        padding: 8px 0.75rem 10px
    }

    .site-header-banner {
        max-height: 52px
    }

    .brand-logo-img {
        max-height: 48px
    }

    .brand-logo-img-footer {
        max-height: 130px
    }

    .nav-red .nav-inner {
        padding: 0.4rem 0.6rem;
        gap: 0.35rem
    }

    .nav-hamburger {
        width: 36px;
        height: 36px;
        padding: 6px
    }

    .nav-hamburger-bar {
        width: 16px;
        height: 1.5px
    }

    .nav-red.nav-open .nav-hamburger-bar:nth-child(1) {
        transform: translateY(5.25px) rotate(45deg)
    }

    .nav-red.nav-open .nav-hamburger-bar:nth-child(3) {
        transform: translateY(-5.25px) rotate(-45deg)
    }

    .nav-search-row {
        max-width: calc(100% - 44px)
    }

        .nav-search-row .search-wrap {
            width: 100%;
            max-width: 100%
        }

        .nav-search-row .search-box {
            width: 100%;
            min-width: 0
        }

            .nav-search-row .search-box input {
                min-height: 34px;
                font-size: 16px;
                width: 100%
            }

    .nav-red .main-nav a {
        font-size: 0.85rem;
        padding: 0.55rem 0.75rem
    }

    .hero-large-item {
        min-height: 280px
    }

    .hero-small-item {
        height: 140px
    }

    .hero-play-btn-large {
        width: 48px;
        height: 48px;
        top: 0.75rem;
        left: 0.75rem
    }

        .hero-play-btn-large .hero-play-triangle {
            border-width: 7px 0 7px 12px
        }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem
    }

    .anatomy-section .section-title, .physiology-section .section-title {
        font-size: 1.5rem;
        font-weight: 900;
        text-align: center
    }

    .last-watched-section, .playlist-category-section, .anatomy-section, .physiology-section, .watch-later-page {
        padding: 1.25rem 0.75rem 1.5rem
    }

    .last-watched-section {
        padding: 0.85rem 0.75rem 1rem
    }

    .watch-later-page .container {
        padding: 0 0.75rem
    }
    /* Home playlists: 3 per row on mobile, no slider, no crop */
    .playlist-category-section .playlists-grid,
    .anatomy-section .playlists-grid,
    .physiology-section .playlists-grid {
        display: grid;
        grid-template-columns: repeat(3,1fr);
        gap: 0.5rem;
        overflow: visible;
        margin: 0;
        padding: 0
    }

    .playlist-category-section .playlist-card,
    .anatomy-section .playlist-card,
    .physiology-section .playlist-card {
        min-width: 0;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08)
    }

    .playlist-category-section .playlist-thumb,
    .anatomy-section .playlist-thumb,
    .physiology-section .playlist-thumb {
        aspect-ratio: 4/3;
        background: #f3f4f6;
        border-radius: 8px 8px 0 0
    }

        .playlist-category-section .playlist-thumb img,
        .anatomy-section .playlist-thumb img,
        .physiology-section .playlist-thumb img {
            width: 100%;
            height: 100%
        }

        .playlist-category-section .playlist-thumb img,
        .anatomy-section .playlist-thumb img {
            object-fit: contain
        }

    .site-footer .footer-right {
        display: none !important;
    }

    .playlist-category-section .playlist-info,
    .anatomy-section .playlist-info,
    .physiology-section .playlist-info {
        padding: 0.4rem 0.35rem;
        min-height: 44px
    }

        .playlist-category-section .playlist-info h3,
        .anatomy-section .playlist-info h3,
        .physiology-section .playlist-info h3 {
            font-size: 0.75rem;
            font-weight: 600;
            line-height: 1.3;
            -webkit-line-clamp: 2
        }

    .playlist-category-section .video-badge,
    .anatomy-section .video-badge,
    .physiology-section .video-badge {
        top: 4px;
        left: 4px;
        padding: 3px 5px;
        font-size: 0.55rem;
        border-radius: 4px
    }

    .playlist-info {
        padding: 0.5rem 0.4rem
    }

        .playlist-info h3 {
            font-size: 0.85rem
        }

    .hero-caption, .hero-caption.small {
        font-size: 0.8rem
    }

    .last-watched-thumbnails {
        gap: 0.75rem
    }

    .last-watched-thumb {
        width: 160px;
        min-width: 160px
    }

    .last-watched-thumb-title {
        font-size: 0.76rem;
        padding: 0.5rem 0.55rem 0.6rem
    }

    .site-modal-box {
        margin: 0.25rem;
        max-height: calc(100vh - 0.5rem);
        border-radius: 8px
    }

    .site-modal-header {
        padding: 0.75rem 1rem
    }

    .site-modal-title {
        font-size: 1.05rem
    }

    #site-modal-body {
        padding: 0.75rem
    }

    .auth-modal-form .form-group {
        margin-bottom: 0.5rem
    }

    .auth-modal-form .form-actions .btn {
        padding: 0.65rem
    }

    #site-toast-container {
        top: 1rem;
        right: 1rem;
        left: auto;
        max-width: min(100vw - 2rem, 360px)
    }

    .site-toast {
        max-width: 100%;
        font-size: 0.85rem;
        padding: 0.75rem 1rem
    }

    .playlist-detail-page .playlist-main-row {
        padding: 0 0.75rem
    }
}

/* Extra small */
@media(max-width:360px) {
    body:not(.home-page) .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem
    }

    .playlist-category-section .playlists-grid,
    .anatomy-section .playlists-grid,
    .physiology-section .playlists-grid {
        gap: 0.4rem
    }

    .playlist-category-section .playlist-info h3,
    .anatomy-section .playlist-info h3,
    .physiology-section .playlist-info h3 {
        font-size: 0.7rem
    }

    .playlist-info {
        padding: 0.45rem 0.4rem
    }

        .playlist-info h3 {
            font-size: 0.8rem
        }

    .hero-caption, .hero-caption.small {
        font-size: 0.75rem
    }

    .last-watched-thumb {
        width: 140px;
        min-width: 140px
    }

    .last-watched-thumb-title {
        font-size: 0.72rem
    }

    .brand-name {
        font-size: 1rem
    }

    .brand-logo-img {
        max-height: 42px
    }

    .brand-logo-img-footer {
        max-height: 120px
    }
}

/* ========== Playlist detail page (same as reference image) ========== */
body.playlist-detail-page {
    background: #0d0d0d;
    color: #fff;
}
    /* Header identical on playlist page - same spacing, no extra styles */
    body.playlist-detail-page .site-header {
        background: #0d0d0d;
    }
    /* Show main site footer on playlist page so logo and hero video images display */
    body.playlist-detail-page .playlist-page-footer {
        display: none;
    }

.playlist-detail-page .playlist-main-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    align-items: start;
    min-height: 70vh;
    max-width: var(--content-max-width);
    width: 100%;
    padding: 0 2rem;
    margin: 0 auto;
}

.playlist-video-pane {
    background: #000;
    display: flex;
    flex-direction: column;
}

.video-player-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    position: relative;
}

.playlist-pane-loader {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(10,10,10,0.88), rgba(15,15,15,0.82));
    backdrop-filter: blur(2px);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

    .playlist-pane-loader.is-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.playlist-pane-loader-inner {
    min-width: 220px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    background: rgba(0,0,0,0.45);
}

.playlist-pane-loader-ring {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,0.25);
    border-top-color: #ef4444;
    border-radius: 50%;
    animation: page-loader-spin 0.9s linear infinite;
}

.playlist-pane-loader-text {
    color: #f3f4f6;
    font-size: 0.88rem;
    text-align: center;
}

.video-player-container {
    position: relative;
    background: #000;
    aspect-ratio: 16/9;
    max-height: calc(100vh - 220px);
    border-radius: 6px;
    overflow: hidden;
}
/* Play/pause overlay: on hover (desktop) and when playing (mobile). z-index below native control bar so progress/volume/fullscreen stay hoverable and clickable. */
.gago-play-pause-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

    .gago-play-pause-overlay .gago-play-pause-overlay-btn {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        margin: 0;
    }

.video-player-container .plyr__controls,
.hero-video-modal .video-player-container .plyr__controls,
.video-player-container .vjs-control-bar,
.hero-video-modal .video-player-container .vjs-control-bar {
    z-index: 3;
}
/* When paused (start): play button always visible. When playing: only on hover. */
.gago-play-pause-overlay.is-paused {
    opacity: 1;
}

.video-player-container:hover .gago-play-pause-overlay.is-playing,
.hero-video-modal .video-player-container:hover .gago-play-pause-overlay.is-playing {
    opacity: 1;
}

.gago-play-pause-overlay.gago-overlay-autohide {
    opacity: 0;
}

.video-player-container:hover .gago-play-pause-overlay.gago-overlay-autohide,
.hero-video-modal .video-player-container:hover .gago-play-pause-overlay.gago-overlay-autohide {
    opacity: 0;
}

@media (max-width:768px), (hover: none) {
    .gago-play-pause-overlay.is-paused {
        opacity: 1;
    }

    .gago-play-pause-overlay.is-playing {
        opacity: 1;
    }

    .gago-play-pause-overlay.gago-overlay-autohide {
        opacity: 0;
    }
}

.gago-play-pause-overlay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s, transform 0.15s;
}

    .gago-play-pause-overlay-btn:hover,
    .gago-play-pause-overlay-btn:focus {
        background: rgba(0,0,0,0.7);
        transform: translate(-50%,-50%) scale(1.05);
    }

.gago-play-pause-overlay .gago-overlay-icon {
    display: none;
    width: 48px;
    height: 48px;
}

.gago-play-pause-overlay .gago-overlay-pause {
    display: flex !important
}

.gago-play-pause-overlay .gago-overlay-play {
    display: none
}

.gago-play-pause-overlay.is-paused .gago-overlay-pause {
    display: none !important
}

.gago-play-pause-overlay.is-paused .gago-overlay-play {
    display: flex !important
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.video-player-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.1rem;
}

.video-title-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    pointer-events: none;
    transition: opacity 0.3s;
    padding-top: 1.25rem;
    z-index: 2;
}

    .video-title-overlay.hidden {
        opacity: 0;
        pointer-events: none;
    }

.video-title-glowing {
    font-size: clamp(1.5rem,4vw,2.5rem);
    font-weight: 800;
    color: #fff;
    text-align: center;
    text-shadow: 0 0 20px rgba(220,38,38,0.8),0 0 40px rgba(220,38,38,0.5),0 0 60px rgba(220,38,38,0.3);
    margin: 0;
    padding: 0 1rem;
    letter-spacing: -0.02em;
}
/* Plyr-specific styles moved to player-plyr.css for per-player customization. */

/* Double-tap / fullscreen tap seek feedback (+10 / −10) and play/pause – visible in fullscreen */
.player-seek-feedback {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    z-index: 9999;
    pointer-events: none;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 0 8px rgba(0,0,0,0.8);
    animation: playerSeekFade 0.6s ease-out forwards;
}

.player-play-pause-feedback {
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation-duration: 0.32s;
}

.player-feedback-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    background: rgba(255,255,255,0.95);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.player-icon-play {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
}

.player-icon-pause {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M6 19h4V5H6v14zm8-14v14h4V5h-4z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M6 19h4V5H6v14zm8-14v14h4V5h-4z'/%3E%3C/svg%3E");
}

@keyframes playerSeekFade {
    0% {
        opacity: 0;
        transform: translate(-50%,-50%) scale(0.8)
    }

    15% {
        opacity: 1;
        transform: translate(-50%,-50%) scale(1.1)
    }

    100% {
        opacity: 0;
        transform: translate(-50%,-50%) scale(1)
    }
}

.video-play-btn-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: none;
    cursor: pointer;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.2s,background 0.2s;
}

    .video-play-btn-overlay:hover {
        background: #fff;
        transform: translate(-50%,-50%) scale(1.05);
    }

    .video-play-btn-overlay svg {
        width: 36px;
        height: 36px;
        margin-left: 4px;
    }

.video-controls-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    flex-wrap: wrap;
}

.ctrl-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .ctrl-btn:hover {
        opacity: 0.9
    }

.volume-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.volume-slider {
    width: 70px;
    height: 4px;
    accent-color: #dc2626;
}

.progress-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.progress-slider {
    flex: 1;
    min-width: 60px;
    height: 6px;
    accent-color: #dc2626;
}

.time-display {
    font-size: 0.8rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.video-timestamps-wrap {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #374151;
}

.video-timestamps-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0 0 0.5rem 0;
}

.video-timestamps-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
/* Playlist page: 4 stamps per row on desktop, 2 on small devices */
.video-timestamps-list--grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .video-timestamps-list--grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.video-timestamp-btn {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    color: #e5e7eb;
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s,color 0.2s;
    text-align: left;
}

    .video-timestamp-btn:hover {
        background: #4b5563;
        color: #fff;
    }

.video-timestamps-empty {
    margin: 0;
    color: #9ca3af;
    font-size: 0.9rem;
}

.playlist-sidebar {
    background: #0d0d0d;
    border-left: 1px solid #1f2937;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: calc(100vh - 180px);
}

.playlist-sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #1f2937;
}

.playlist-cover-wrap {
    padding: 0 1.25rem 1rem;
    border-bottom: 1px solid #1f2937;
}

.playlist-cover-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.now-playing-cover {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    flex-shrink: 0;
    aspect-ratio: 16/9;
}

    .now-playing-cover .playlist-cover-img {
        border-radius: 10px;
        height: 100%;
        object-fit: cover;
    }

    .now-playing-cover::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 70%;
        background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.15), transparent);
        pointer-events: none;
    }

.now-playing-overlay {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.65rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.now-playing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: max-content;
    background: rgba(220,38,38,0.9);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    text-transform: uppercase;
}

.now-playing-icon {
    display: inline-flex;
    line-height: 0;
}

.now-playing-title {
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.playlist-video-list {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: #dc2626 #121212;
    scrollbar-gutter: stable;
}

    .playlist-video-list::-webkit-scrollbar {
        width: 10px;
    }

    .playlist-video-list::-webkit-scrollbar-track {
        background: #121212;
    }

    .playlist-video-list::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg,#ef4444,#b91c1c);
        border-radius: 999px;
        border: 2px solid #121212;
    }

        .playlist-video-list::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg,#f87171,#dc2626);
        }

.playlist-video-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 3.75rem 0.6rem 1.25rem;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #1a1a1a;
    transition: background 0.2s;
}

    .playlist-video-item:hover {
        background: rgba(255,255,255,0.06);
    }

    .playlist-video-item.is-current {
        background: rgba(220,38,38,0.22);
        border-left: 3px solid #dc2626;
        padding-left: calc(1.25rem - 3px);
        font-weight: 600;
    }

        .playlist-video-item.is-current .playlist-item-title {
            font-weight: 700;
            color: #fff;
        }

.playlist-item-now-playing-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(220,38,38,0.95);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.playlist-item-num {
    font-size: 0.85rem;
    color: #9ca3af;
    flex-shrink: 0;
    min-width: 1.5rem;
}

.playlist-item-play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(220,38,38,0.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    pointer-events: none;
}

.playlist-item-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    background: #1f2937;
    position: relative;
}

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

.playlist-item-title {
    font-size: 0.85rem;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.playlist-mid-section {
    border-top: 1px solid #374151;
    padding: 2.5rem 2rem 3rem;
    background: #0d0d0d;
}

.playlist-mid-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.playlist-desc-block .brand-logo-dark {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.playlist-desc-block .brand-name {
    color: #dc2626;
    font-size: 1.35rem;
    font-weight: 700
}

.playlist-desc-block .brand-tagline {
    color: #fff;
    font-size: 0.8rem;
    margin-top: 2px
}

.playlist-desc-block p {
    color: #e5e7eb;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0.5rem 0;
}

.playlist-related-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #1a1a1a;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
    min-width: 0;
}

    .related-card:hover {
        background: #262626
    }

    .related-card img {
        width: 100px;
        height: 66px;
        object-fit: cover;
        border-radius: 4px;
        flex-shrink: 0;
    }

    .related-card span {
        font-size: 0.9rem;
        font-weight: 500;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.playlist-light-dark-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #4b5563 20%, #374151 50%, #1f2937 80%, #000 100%);
    margin: 0;
}

.playlist-page-footer {
    background: #000;
    padding: 0.75rem 2rem;
    border-top: 1px solid #1f2937;
}

    .playlist-page-footer .footer-copyright {
        font-size: 0.8rem;
        color: #9ca3af;
    }

@media(max-width:900px) {
    .playlist-detail-page .playlist-main-row {
        grid-template-columns: 1fr
    }

    .playlist-sidebar {
        border-left: none;
        border-top: 1px solid #1f2937;
        max-height: 56vh;
        min-height: 240px
    }

    .video-player-container {
        max-height: 38vh
    }

    .playlist-mid-inner {
        grid-template-columns: 1fr;
        gap: 2rem
    }
}

@media(max-width:768px) {
    .playlist-detail-page .playlist-video-pane {
        display: none
    }

    .playlist-detail-page.playlist-mobile-show-player .playlist-video-pane {
        display: block
    }

    .playlist-detail-page:not(.playlist-mobile-show-player) .playlist-item-now-playing-badge {
        display: none
    }

    .playlist-detail-page .playlist-main-row {
        min-height: 50vh
    }

    .video-player-wrap {
        padding: 0.75rem 1rem
    }

    .video-player-container {
        max-height: 36vh
    }

    .playlist-sidebar {
        max-height: 54vh;
        min-height: 220px
    }

    .playlist-sidebar-title, .playlist-cover-wrap {
        padding: 0.75rem 1rem
    }

    .now-playing-overlay {
        left: 0.6rem;
        right: 0.6rem;
        bottom: 0.55rem
    }

    .now-playing-title {
        font-size: 0.8rem
    }

    .playlist-video-item {
        padding: 0.5rem 4rem 0.5rem 1rem;
        font-size: 0.9rem
    }

        .playlist-video-item .watch-later-add-btn {
            min-width: 44px;
            min-height: 44px;
            width: 44px;
            height: 44px
        }

        .playlist-video-item.is-current {
            padding-left: calc(1rem - 3px)
        }

    .related-card {
        padding: 0.6rem;
        gap: 0.75rem
    }

        .related-card img {
            width: 80px;
            height: 54px
        }

    .playlist-mid-section {
        padding: 1.5rem 1rem 2rem
    }

    .playlist-mid-inner {
        padding: 0 1rem;
        gap: 1.5rem
    }

    .hero-video-modal-content {
        max-width: 100%;
        width: 100%;
        margin: 0.5rem;
        max-height: calc(100vh - 1rem)
    }
}

@media(max-width:480px) {
    .video-player-wrap {
        padding: 0.5rem
    }

    .video-player-container {
        max-height: 32vh
    }

    .video-title-glowing {
        font-size: 1.25rem
    }

    .video-controls-bar {
        gap: 0.5rem;
        padding: 0.4rem 0
    }

    .progress-wrap {
        min-width: 0
    }

    .playlist-sidebar {
        max-height: 52vh;
        min-height: 200px
    }

    .playlist-cover-wrap {
        padding: 0.5rem 1rem
    }

    .now-playing-badge {
        font-size: 0.66rem;
        padding: 0.2rem 0.45rem
    }

    .now-playing-title {
        font-size: 0.75rem
    }

    .playlist-video-item {
        padding: 0.45rem 4rem 0.45rem 0.75rem;
        font-size: 0.85rem
    }

        .playlist-video-item .watch-later-add-btn {
            min-width: 44px;
            min-height: 44px;
            width: 44px;
            height: 44px
        }

        .playlist-video-item.is-current {
            padding-left: calc(0.75rem - 3px)
        }

    .playlist-item-play-icon {
        width: 24px;
        height: 24px
    }

    .related-card img {
        width: 70px;
        height: 47px
    }

    .playlist-desc-block .brand-name {
        font-size: 1.15rem
    }

    .hero-video-modal-content {
        margin: 0.25rem;
        max-height: calc(100vh - 0.5rem)
    }

    .hero-video-modal-close {
        width: 36px;
        height: 36px;
        top: 4px;
        right: 4px
    }
}

/* Hero video popup modal */
.hero-video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

    .hero-video-modal[hidden] {
        display: none !important;
    }

.hero-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    cursor: pointer;
}

.hero-video-modal-content {
    position: relative;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    max-width: 90vw;
    width: 900px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.hero-video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #1a1a1a;
    flex-shrink: 0;
    cursor: default;
    position: relative;
    z-index: 10;
}

.hero-video-modal-title {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    flex: 1;
    min-width: 0;
}

.hero-video-modal-close {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}

    .hero-video-modal-close:hover {
        background: rgba(0,0,0,0.9);
    }

.hero-video-modal .video-player-container {
    flex: 1;
    min-height: 0;
}

.hero-video-modal-content {
    display: flex;
    flex-direction: column;
}

.hero-video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    object-fit: contain;
}

/* Voiceover in-page modal */
.voiceover-modal {
    position: fixed;
    inset: 0;
    z-index: 10004;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

    .voiceover-modal[hidden] {
        display: none !important;
    }

.voiceover-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    cursor: pointer;
}

.voiceover-modal-content {
    position: relative;
    background: #1a1a1a;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.15);
    max-width: 520px;
    width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 70px rgba(0,0,0,0.6);
    overflow: hidden;
}

.voiceover-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #111;
    flex-shrink: 0;
    cursor: default;
    position: relative;
    z-index: 10;
}

.voiceover-modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    flex: 1;
    min-width: 0;
}

.voiceover-modal-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}

    .voiceover-modal-close:hover {
        background: rgba(0,0,0,0.9);
    }

.voiceover-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    font-size: 0.95rem;
}

.voiceover-modal-loading {
    text-align: center;
    opacity: 0.7;
}

.voiceover-modal-body .voiceover-title {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.voiceover-modal-body .voiceover-subtitle {
    margin: 0 0 1rem;
    color: rgba(255,255,255,0.8);
}

.voiceover-modal-body .voiceover-highlight {
    margin: 0 0 1rem;
    padding: 0.6rem 0.8rem;
    background: rgba(255,92,92,0.12);
    border: 1px dashed rgba(255,92,92,0.45);
    border-radius: 10px;
    color: #ff9e9e;
}

.voiceover-modal-body .voiceover-text {
    margin: 0 0 1.25rem;
    color: rgba(255,255,255,0.75);
}

.voiceover-modal-body .voiceover-success {
    padding: 0.65rem 0.9rem;
    background: rgba(46,204,113,0.15);
    border: 1px solid rgba(46,204,113,0.4);
    border-radius: 8px;
    color: #2ecc71;
    margin-bottom: 1rem;
}

.voiceover-modal-body .voiceover-form {
    display: inline-block;
    width: 100%;
}

.voiceover-modal-body .voiceover-field {
    margin-bottom: 0.85rem;
}

    .voiceover-modal-body .voiceover-field label {
        display: block;
        margin-bottom: 0.3rem;
        font-size: 0.85rem;
        font-weight: 600;
        color: rgba(255,255,255,0.9);
    }

    .voiceover-modal-body .voiceover-field input,
    .voiceover-modal-body .voiceover-field textarea {
        width: 100%;
        padding: 0.6rem 0.8rem;
        background: #111;
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 8px;
        color: #fff;
        font-family: inherit;
        font-size: 0.95rem;
        outline: none;
    }

        .voiceover-modal-body .voiceover-field input:focus,
        .voiceover-modal-body .voiceover-field textarea:focus {
            border-color: #ff5c5c;
        }

.voiceover-modal-body .voiceover-submit {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #c1121f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

    .voiceover-modal-body .voiceover-submit:hover {
        background: #e63946;
    }

.voiceover-modal-body .voiceover-back {
    margin-top: 0.75rem;
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
}

    .voiceover-modal-body .voiceover-back a {
        color: #ff9e9e;
        text-decoration: none;
    }

/* Site auth modal & toast (sign in / register popup) */
#site-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.site-toast {
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    border: 2px solid rgba(255,255,255,0.3);
    pointer-events: auto;
    max-width: 320px;
}

.site-toast-success {
    background: #059669;
    color: #fff;
    border-color: #047857;
}

.site-toast-error {
    background: #dc2626;
    color: #fff;
    border-color: #b91c1c;
}

.site-toast-info {
    background: var(--primary,#2563eb);
    color: #fff;
    border-color: #1d4ed8;
}

.page-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248,250,252,0.75);
    backdrop-filter: blur(3px);
    z-index: 10005;
}

    .page-loader[hidden] {
        display: none !important;
    }

.page-loader-inner {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-loader-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    animation: page-loader-pulse 1.2s ease-in-out infinite;
    z-index: 1;
}

.page-loader-ring {
    position: absolute;
    inset: -4px;
    border: 3px solid rgba(185,28,28,0.2);
    border-top-color: #b91c1c;
    border-radius: 50%;
    animation: page-loader-spin 0.9s linear infinite;
}

@keyframes page-loader-pulse {
    0%,100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: 0.85;
        transform: scale(1.05)
    }
}

@keyframes page-loader-spin {
    to {
        transform: rotate(360deg)
    }
}

#site-modal-backdrop,
#site-modal-wrap {
    display: none;
}

    #site-modal-backdrop:not([hidden]) {
        display: block;
    }

    #site-modal-wrap:not([hidden]) {
        display: flex;
    }

#site-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10002;
}

#site-modal-wrap {
    position: fixed;
    inset: 0;
    z-index: 10003;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.site-modal-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.site-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.site-modal-user-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
    color: var(--text-secondary);
}

.site-modal-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    flex: 1;
}

.site-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0 0.25rem;
}

    .site-modal-close:hover {
        color: var(--text);
    }

#site-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
}

.site-modal-loading {
    margin: 0;
    color: var(--text-secondary);
}

.auth-modal-form .form-group {
    margin-bottom: 0.75rem;
}

.auth-modal-form .form-actions {
    margin-top: 1rem;
}

    .auth-modal-form .form-actions .btn {
        width: 100%;
    }

.password-toggle-wrap {
    position: relative;
    display: block;
}

    .password-toggle-wrap .form-control {
        padding-right: 2.75rem;
    }

.password-toggle-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .password-toggle-btn:hover {
        color: var(--text);
    }

/* Auth popup: Sign in / Sign up tabs */
.auth-tabs {
    margin-top: 0;
}

.auth-tab-headers {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.auth-tab {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

    .auth-tab:hover {
        color: var(--text);
    }

    .auth-tab.active {
        color: var(--primary);
        border-bottom-color: var(--primary);
    }

.auth-tab-panel {
    display: none;
}

    .auth-tab-panel.active {
        display: block;
    }

/* Topbar logout button (matches icon style) */
.topbar-logout-form {
    margin: 0;
    padding: 0;
}

.topbar-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    color: #fff;
    opacity: 0.9;
    cursor: pointer;
    font: inherit;
}

    .topbar-logout-btn:hover {
        opacity: 1;
    }

/* Pay for membership banner (top of every page when on paid plan but not paid) */
.pay-membership-banner {
    background: linear-gradient(135deg,#b91c1c,#7f1d1d);
    color: #fff;
    padding: 10px 24px;
    text-align: center;
}

.pay-membership-banner-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pay-membership-banner-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.pay-membership-banner-btn {
    display: inline-block;
    background: #fff;
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .pay-membership-banner-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        color: var(--primary);
    }

/* reCAPTCHA badge can be hidden when the required disclosure text is shown on the page. */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.recaptcha-disclosure {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0.75rem 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: center;
}

    .recaptcha-disclosure a {
        color: inherit;
        text-decoration: underline;
    }

/* Playlist Coming Soon modal (non-English empty playlists) */
.playlist-coming-soon-overlay {
    position: fixed;
    inset: 0;
    z-index: 10004;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0,0,0,0.8);
}

    .playlist-coming-soon-overlay.is-open {
        display: flex;
    }

.playlist-coming-soon-modal {
    background: #1a1a1a;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.15);
    max-width: 520px;
    width: 100%;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0,0,0,0.6);
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.playlist-empty-trigger {
    cursor: pointer;
    color: #1a202c;
}

    .playlist-empty-trigger .playlist-info h3 {
        color: #1a202c;
    }

    .playlist-empty-trigger:hover .playlist-thumb img {
        transform: scale(1.04);
    }

    .playlist-empty-trigger:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
        border-color: #d1d5db;
    }

.playlist-coming-soon-modal {
    background: #1a1a1a;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.15);
    max-width: 520px;
    width: 100%;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0,0,0,0.6);
    animation: slideUp 0.4s ease;
}

.playlist-coming-soon-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.playlist-coming-soon-title {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.playlist-coming-soon-text {
    margin: 0 0 1.25rem;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    line-height: 1.6;
}

.playlist-coming-soon-highlight {
    color: #ff5c5c;
    font-weight: 700;
}

.playlist-coming-soon-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: #c1121f;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s, transform 0.2s;
}

    .playlist-coming-soon-link:hover {
        background: #e63946;
        transform: translateY(-1px);
        color: #fff;
    }

.playlist-coming-soon-close {
    margin-top: 1.25rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.8);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

    .playlist-coming-soon-close:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Voiceover contribution page */
.voiceover-page {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.voiceover-card {
    background: #1a1a1a;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.voiceover-icon {
    color: #ff5c5c;
    margin-bottom: 1rem;
}

.voiceover-title {
    margin: 0 0 0.75rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.voiceover-subtitle {
    margin: 0 auto 1.25rem;
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 600px;
}

.voiceover-highlight {
    margin: 0 0 1.25rem;
    padding: 0.75rem 1rem;
    background: rgba(255,92,92,0.1);
    border: 1px dashed rgba(255,92,92,0.4);
    border-radius: 10px;
    color: #ff9e9e;
    font-size: 1rem;
}

.voiceover-text {
    margin: 0 0 1.75rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.75rem;
}

.voiceover-success {
    padding: 0.75rem 1rem;
    background: rgba(46,204,113,0.15);
    border: 1px solid rgba(46,204,113,0.4);
    border-radius: 8px;
    color: #2ecc71;
    margin-bottom: 1.5rem;
}

.voiceover-form {
    display: inline-block;
    text-align: left;
    width: 100%;
    max-width: 420px;
}

.voiceover-field {
    margin-bottom: 1rem;
}

    .voiceover-field label {
        display: block;
        margin-bottom: 0.35rem;
        font-size: 0.9rem;
        font-weight: 600;
        color: rgba(255,255,255,0.9);
    }

    .voiceover-field input,
    .voiceover-field textarea {
        width: 100%;
        padding: 0.65rem 0.85rem;
        background: #111;
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 8px;
        color: #fff;
        font-family: inherit;
        font-size: 0.95rem;
        outline: none;
        transition: border-color 0.2s;
    }

        .voiceover-field input:focus,
        .voiceover-field textarea:focus {
            border-color: #ff5c5c;
        }

.voiceover-submit {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.85rem;
    background: #c1121f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

    .voiceover-submit:hover {
        background: #e63946;
        transform: translateY(-1px);
    }

.voiceover-back {
    margin-top: 1.5rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

    .voiceover-back a {
        color: #ff9e9e;
        text-decoration: none;
    }

        .voiceover-back a:hover {
            text-decoration: underline;
        }
