body {
    background-color: #dddddd !important;
    font-family: Abel, sans-serif !important;
    color: black !important;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-y: scroll;
}

/* Navigation Styles mimicking Squarespace */
/* Reserve space for header injection to prevent layout shift */
#header-placeholder {
    min-height: 80px; /* Mobile header height */
}
@media (min-width: 992px) {
    #header-placeholder {
        min-height: 190px; /* Desktop header height */
    }
}

.site-header {
    background-color: #dddddd;
    font-family: Abel, sans-serif;
    padding: 0.9vw 0; /* Squarespace vertical header padding, horizontal handled by container */
    position: relative;
    z-index: 1001; /* Stay above overlay */
}

/* Container matching Squarespace content-wrapper geometry */
.watch-content-wrapper {
    width: 100%;
    padding-left: 4vw;
    padding-right: 4vw;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .watch-content-wrapper {
        max-width: 1400px; /* Aligned with Squarespace maxPageWidth */
    }
}

/* Header content wrapper: matches Squarespace header-inner geometry */
.header-watch-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}



/* Desktop Header grid layout */
.header-top-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 114px;
}

.header-social-actions {
    flex: 1;
    display: flex;
    gap: 1.7vw; /* Spacing between social icons matching Squarespace */
    justify-content: flex-start;
}

@media (min-width: 992px) {
    .header-social-actions,
    .header-auth-actions {
        align-self: flex-start;
        margin-top: 59px; /* Centered relative to total header height */
    }
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* Aligned with Squarespace circle size */
    height: 40px; /* Aligned with Squarespace circle size */
    border-radius: 50%;
    border: 1px solid black;
    color: black;
    font-size: 18px; /* Matching Squarespace svg icon scale */
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background-color: black;
    color: #dddddd;
}

.header-logo-container {
    text-align: center;
}

.logo-desktop {
    height: 114px;
    max-height: 114px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.header-auth-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.header-bottom-band {
    margin-top: 1vw;
    padding-top: 0;
}

.header-nav-list {
    display: flex;
    gap: 1.7vw; /* Spacing between nav items aligned with Squarespace (0.85vw left/right margin) */
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.header-nav-link {
    color: black;
    font-family: Abel, sans-serif;
    font-size: 1.2rem; /* Aligned with Squarespace navigation scale */
    font-weight: 400; /* Shifted from 500 to match normal weight */
    letter-spacing: 0.01em; /* Aligned with Squarespace letter-spacing */
    line-height: 1.6em; /* Matches Squarespace navigation line height */
    text-transform: none;
    text-decoration: none;
    transition: opacity 0.2s ease;
    display: inline-block;
}

.header-nav-link:hover {
    opacity: 0.6;
}

.header-nav-link.active-link {
    font-weight: 500;
    text-decoration: underline !important;
    text-underline-offset: 6px !important;
    text-decoration-thickness: 2px !important;
}

/* Mobile Header styles */
.header-mobile-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding: 6vw 4vw; /* Aligned with Squarespace mobile-header-vert-padding */
    position: relative;
    z-index: 1002;
}

.logo-mobile {
    height: 35px;
    max-height: 35px;
    object-fit: contain;
    display: block;
}

/* Custom Burger Button Bun/Patty structure */
.header-burger-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8px;
    outline: none;
}

.burger-box {
    width: 22px;
    height: 14px;
    position: relative;
}

.burger-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.top-bun, .patty, .bottom-bun {
    width: 100%;
    height: 2px;
    background-color: black;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Bun/Patty Transformation to X */
.header--menu-open .top-bun {
    transform: translateY(6px) rotate(45deg);
}

.header--menu-open .patty {
    opacity: 0;
}

.header--menu-open .bottom-bun {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Menu Overlay Drawer (replaces collapse) */
.header-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #dddddd;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 120px 40px 60px 40px; /* Top padding accommodates standard header height */
}

.header--menu-open .header-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.header-menu-nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

.header-menu-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.header-menu-nav-list .header-nav-link {
    font-size: 1.4rem; /* Prominent navigation inside overlay */
    padding: 5px 0;
}

.header-menu-actions.social-accounts {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.header-menu-actions.social-accounts .social-icon {
    width: 38px; /* Slightly larger social icons in overlay */
    height: 38px;
    font-size: 18px;
}

/* Sticky video column */
.sticky-video-col {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 500;
}

/* Member Access Gating Overlay Styles */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(221, 221, 221, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
}
.login-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    color: #1e293b;
    text-align: center;
    animation: cardFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.login-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 4px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.login-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.login-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Choice screen styles */
.login-choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.login-choice-btn {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}
.login-choice-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.login-choice-btn:active {
    transform: translateY(0);
}
.login-choice-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.login-choice-icon.password-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}
.login-choice-icon.email-icon {
    background: rgba(254, 189, 89, 0.15);
    color: #d97706;
}
.login-choice-text {
    flex: 1;
}
.login-choice-label {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
    color: #0f172a;
}
.login-choice-desc {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.4;
}
.login-choice-arrow {
    color: #94a3b8;
    font-size: 14px;
    transition: transform 0.2s ease, color 0.2s ease;
}
.login-choice-btn:hover .login-choice-arrow {
    color: #64748b;
    transform: translateX(2px);
}
.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
}
.login-divider-line {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.login-divider-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

/* Email form (hidden initially) */
.login-email-form {
    display: none;
    animation: formSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.login-email-form.visible {
    display: block;
}
@keyframes formSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.login-form {
    text-align: left;
}
.login-group {
    margin-bottom: 20px;
}
.login-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 8px;
    display: block;
}
.login-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 16px;
    color: #0f172a;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.login-input:focus {
    outline: none;
    border-color: #febd59;
    box-shadow: 0 0 0 3px rgba(254, 189, 89, 0.2);
}
.login-btn {
    width: 100%;
    background: #febd59;
    color: #4b3200;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.login-btn:hover {
    background: #fca830;
}
.login-btn:active {
    transform: scale(0.98);
}
.login-btn:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
}
.login-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin-top: 20px;
    transition: color 0.2s ease;
}
.login-back-link:hover {
    color: #d97706;
}
.login-error-container {
    margin-top: 16px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 8px;
    display: none;
}
.login-error-text {
    color: #dc2626;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    margin: 0;
}
.login-loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #4b3200;
    animation: loginSpin 0.6s linear infinite;
    margin-right: 8px;
    display: none;
}
@keyframes loginSpin {
    to { transform: rotate(360deg); }
}

/* 6-digit OTP Inputs UI */
.otp-inputs-container {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 24px 0;
}
.otp-digit-input {
    width: 48px;
    height: 54px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: #d97706;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.otp-digit-input:focus {
    border-color: #febd59;
    box-shadow: 0 0 0 3px rgba(254, 189, 89, 0.2);
}
