:root {
    --bg-color: #0f0f13;
    --sidebar-bg: rgba(20, 20, 28, 0.95);
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-color: #e50914;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --font-family: 'Inter', sans-serif;
    --primary-glow: rgba(100, 100, 255, 0.3);
}


.landing-page {
    width: 100%;
    min-height: 100vh;
    background: radial-gradient(circle at top right, #1a1a24 0%, #000000 100%);
    overflow-x: hidden;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 10%;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.landing-nav .logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}

.landing-nav .logo img {
    height: 40px;
    margin-right: 15px;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    margin-right: 1rem;
}

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

.btn-primary-small {
    background: white;
    color: black;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-primary-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 10%;
    min-height: 60vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-content h1 span {
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.btn-hero {
    background: white;
    color: black;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-hero:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.btn-secondary-hero {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.glow-sphere {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(40px);
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
        opacity: 0.5;
    }

    to {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.features-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 4rem 10%;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 20px;
    border: var(--glass-border);
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}


.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
}

.auth-container-nested {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: auto;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #ffffff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.2s ease;
    z-index: 20;
    padding: 0;
}

.close-modal:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    height: 60px;
}

.auth-box h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.auth-footer {
    margin-top: 2rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: white;
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
}

.forgot-password-link {
    display: inline-block;
    color: var(--kweli-orange, #dc7832);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 2px 0;
}

.forgot-password-link:hover {
    color: #ffffff;
    text-decoration: underline;
    transform: translateX(-2px);
}

.otp-input {
    letter-spacing: 6px;
    font-size: 1.5rem !important;
    text-align: center;
    font-weight: 700;
    font-family: 'Courier New', Courier, monospace;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1.5px solid rgba(220, 120, 50, 0.4) !important;
    color: #fff !important;
    transition: all 0.3s ease;
}

.otp-input:focus {
    border-color: var(--kweli-orange, #dc7832) !important;
    box-shadow: 0 0 15px rgba(220, 120, 50, 0.3) !important;
}

.password-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.password-wrapper .form-control {
    padding-right: 44px;
    margin-bottom: 0;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #888888;
    cursor: pointer;
    padding: 6px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 5;
}

.password-toggle-btn:hover {
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.password-toggle-btn:focus {
    outline: none;
    color: var(--kweli-orange, #dc7832);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg-color);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(100, 100, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(200, 50, 50, 0.05) 0%, transparent 20%);
    color: var(--text-primary);
    height: 100vh;
    display: flex;
    overflow: hidden;
}


.auth-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    background: radial-gradient(circle at center, #1a1a24 0%, #000000 100%);
}

.auth-box {
    position: relative;
    background: rgba(30, 30, 40, 0.95);
    backdrop-filter: blur(20px);
    padding: clamp(1.75rem, 5vw, 2.75rem);
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    box-sizing: border-box;
    border: var(--glass-border);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    text-align: center;
    transform: rotateX(0deg);
    transition: transform 0.5s ease;
}


.how-it-works-section {
    padding: 5rem 10%;
    background: #0f0f13;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(to right, #fff, #aaa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    width: 250px;
    text-align: center;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.step-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.step-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}


.devices-section {
    padding: 5rem 10%;
    background: radial-gradient(circle at center, #1a1a24 0%, #000 100%);
    text-align: center;
}

.device-icons {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.device-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #888;
    transition: color 0.3s ease;
}

.device-icon i {
    font-size: 4rem;
}

.device-icon:hover {
    color: white;
}

.device-icon span {
    font-weight: 600;
    font-size: 1.1rem;
}


.site-footer {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 10% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.brand-col .logo {
    margin-bottom: 1.5rem;
    justify-content: flex-start;
}

.brand-col .logo img {
    height: 40px;
}

.brand-col p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #888;
    font-size: 1.5rem;
    transition: color 0.3s;
}

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

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #fff;
}

.footer-col a {
    display: block;
    color: #888;
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 0.9rem;
}


.legal-page {
    background: #0f0f13;
    overflow-x: hidden;
    width: 100%;
}

.legal-content {
    max-width: 800px;
    margin: 4rem auto 8rem;
    padding: 0 2rem;
}

.legal-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-content>p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.legal-content section {
    margin-bottom: 3rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.legal-content section p {
    color: #aaa;
    line-height: 1.6;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .auth-box {
        width: 100%;
        max-width: 440px;
        padding: 2rem 1.5rem;
    }


    .landing-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 5%;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 3rem 5%;
        min-height: auto;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image {
        display: none;

    }

    .features-section {
        grid-template-columns: 1fr;
        padding: 3rem 5%;
        gap: 1.5rem;
    }

    .how-it-works-section,
    .pricing-section,
    .devices-section {
        padding: 3rem 5%;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step-card {
        width: 100%;
        max-width: 400px;
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3rem;
    }

    .brand-col .logo {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
        margin-bottom: 2rem;
    }

    .brand-col p {
        margin: 0 auto 1.5rem auto;
    }


    .legal-content {
        margin: 2rem auto 4rem;
        padding: 0 1.5rem;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-content h2 {
        font-size: 1.3rem;
    }


    .legal-page .landing-nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1rem;
    }

    .legal-page .landing-nav .nav-auth {
        margin-top: 1.5rem;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .legal-page .btn-outline {
        margin-right: 0;
        width: 100%;
        max-width: 200px;
    }
}

.auth-box:hover {
    transform: translateY(-5px) rotateX(2deg);
}

.auth-box h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.form-control:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: white;

    color: black;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.auth-link {
    display: block;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.auth-link:hover {
    color: white;
}


.dashboard-container {
    display: flex;
    width: 100%;
    height: 100%;
}


.sidebar {
    width: 80px;

    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    border-right: var(--glass-border);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 100;
    backdrop-filter: blur(10px);
    height: 100vh;
    position: sticky;
    top: 0;
}

.sidebar:hover {
    width: 250px;
}

.logo {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    white-space: nowrap;
    opacity: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    background: linear-gradient(45deg, #fff, #888);
    background-clip: text;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s;
}


.sidebar .logo i {
    font-size: 2rem;
    color: white;

    -webkit-text-fill-color: white;
    margin-right: 0;
    transition: margin 0.3s;
}

.sidebar:hover .logo {
    opacity: 1;

}

.sidebar:hover .logo i {
    margin-right: 15px;
}

.logo span {
    display: none;
}

.sidebar:hover .logo span {
    display: inline-block;
}

.nav-links {
    list-style: none;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.sidebar:hover .nav-links {
    align-items: stretch;

}

.nav-item {
    width: 100%;
    margin-bottom: 0.2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    height: 45px;
    white-space: nowrap;
    justify-content: center;

    position: relative;
    border-left: 3px solid transparent;
}

.sidebar:hover .nav-link {
    justify-content: flex-start;
    padding-left: 2rem;
}

.nav-link i {
    font-size: 1.4rem;
    width: 30px;
    text-align: center;
    transition: color 0.3s;
}

.nav-link span {
    display: none;
    margin-left: 1.5rem;
    font-size: 1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease 0.1s;
}

.mobile-text {
    display: none !important;
}

.sidebar:hover .nav-link span {
    display: inline-block;
    opacity: 1;
    transform: translateX(0);
}

.nav-link:hover,
.nav-link.active,
.nav-link:focus {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-left-color: white;

}

.nav-link:hover i,
.nav-link.active i {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}



.content-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 3rem;
    background: radial-gradient(circle at top right, #1a1a1f 0%, #000000 100%);
    perspective: 1000px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 250px;
    text-decoration: none;
    color: white;
    transform-style: preserve-3d;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover,
.card:focus {
    transform: translateY(-10px) scale(1.05) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.4s;
}

.card:hover .card-icon {
    transform: translateZ(20px);
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    transform: translateZ(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
}


.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    background: rgba(255, 80, 80, 0.1);
    border: 1px solid rgba(255, 80, 80, 0.3);
    color: #ff8080;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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


::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}


.playlist-container {
    display: flex;
    flex-wrap: wrap;

    gap: 2rem;
    margin-bottom: 4rem;
}

.playlist-form {
    flex: 1 1 400px;

    background: var(--card-bg);
    border: var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.playlist-form:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.playlist-form h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: white;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.playlist-form h3 i {
    margin-right: 1rem;
    color: var(--accent-color);

    background: linear-gradient(135deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 2rem;
    border-radius: 15px;
    border: var(--glass-border);
}

.search-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    width: 300px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .search-input {
        width: 100%;
        margin-bottom: 1rem;
    }
}

.search-input:focus {
    width: 400px;
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}


.category-row {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid #e50914;

    display: flex;
    align-items: center;
}

.category-title small {
    margin-left: 1rem;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.row-container {
    display: flex;
    overflow-x: auto;
    padding: 1rem 0 2rem 0;

    gap: 1.5rem;
    scroll-behavior: smooth;
    -ms-overflow-style: none;

    scrollbar-width: none;

}

.row-container::-webkit-scrollbar {
    display: none;
}

.movie-card {
    min-width: 160px;
    max-width: 160px;
    height: 240px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    flex-shrink: 0;
    background: #111;
}

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

.movie-card:hover {
    transform: scale(1.15);

    z-index: 10;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
    border: 2px solid white;
}

.movie-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.movie-card:hover .movie-info-overlay {
    opacity: 1;
}

.movie-title {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}


.row-loader {
    min-width: 160px;
    height: 240px;
    background: linear-gradient(90deg, #1f1f1f 25%, #2a2a2a 50%, #1f1f1f 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
    flex-shrink: 0;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}




.layout-3pane {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: var(--bg-color);
}


.pane-categories {
    width: 20%;
    background: rgba(15, 15, 20, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.pane-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.category-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.category-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.category-item:hover,
.category-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.category-item.active {
    border-left-color: var(--accent-color);
    font-weight: 600;
}


.pane-channels {
    width: 25%;

    background: rgba(20, 20, 25, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.channel-search-box {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.channel-search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
}

.channel-list {
    flex-grow: 1;
    overflow-y: auto;
}

.channel-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: background 0.2s;
}

.channel-item:hover,
.channel-item.active {
    background: rgba(255, 255, 255, 0.08);
}

.channel-item.active {
    border-left: 3px solid var(--accent-color);

}

.channel-icon {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: contain;
    background: #000;
    margin-right: 1rem;
    flex-shrink: 0;
}

.channel-info {
    overflow: hidden;
}

.channel-name {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.channel-number {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-right: 0.8rem;
    min-width: 20px;
}


.pane-player {
    width: 55%;
    background: black;
    display: flex;
    flex-direction: column;
    justify-content: center;

    position: relative;
    padding-bottom: 0px;

}

#videoPlayerContainer {
    width: 100%;
    height: 100%;



    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-selection-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.no-selection-placeholder i {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}




@media (max-width: 768px) {


    body {
        flex-direction: column;

        overflow: hidden;

    }


    .dashboard-container {
        flex-direction: column;
        height: 100vh;
        width: 100vw;
    }

    .content-area {
        padding: 1.5rem;

        padding-bottom: 80px;

        width: 100%;
        height: 100%;
        overflow-y: auto;
    }

    .page-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }


    .sidebar {
        position: fixed;
        top: auto; /* override the desktop sticky top: 0 so the bar sits at the bottom */
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;

        flex-direction: row;

        background: rgba(10, 10, 15, 0.95);
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0;
        z-index: 1000;
        justify-content: space-around;

        align-items: center;
        overflow: visible;

        backdrop-filter: blur(15px);
    }

    .sidebar:hover {
        width: 100%;

    }

    .logo {
        display: none;

    }

    .nav-links {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        padding: 0;
        margin: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-item {
        width: auto;
        margin: 0;
        flex: 1 0 58px;

    }

    .nav-link {
        height: 70px;
        flex-direction: column;
        justify-content: center;
        padding: 0;
        border-left: none;
        border-bottom: 3px solid transparent;

    }

    .sidebar:hover .nav-link {
        padding-left: 0;

    }

    .nav-link i {
        font-size: 1.4rem;
        width: auto;
        margin-bottom: 4px;
    }

    .nav-link span {
        display: block;

        font-size: 0.7rem;
        margin: 0;
        opacity: 0.7;
        transform: none;
        position: static;
    }

    .desktop-text {
        display: none !important;
    }

    .nav-link span.mobile-text {
        display: block !important;
    }

    .sidebar:hover .nav-link span {
        display: block;

    }

    .nav-link:hover,
    .nav-link.active {
        border-left: none;
        border-bottom-color: var(--accent-color);
        background: transparent;
        color: var(--accent-color);
    }

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

    /* Hide Logout on bottom nav to save space? Or put it in profile/settings page?
       For now, let's keep it or hide it. */
    .user-menu {
        display: none;

    }


    .content-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 1rem;
    }

    .card {
        height: 180px;

        padding: 1rem;
    }

    .card-icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .card-title {
        font-size: 1rem;
    }


    .layout-3pane {
        flex-direction: column;
        height: 100vh;
        width: 100vw;
        position: relative;
    }

    /* Pane 1: Categories (Drawer Mode/Hidden or Top Bar)
       Review: Let's make Player STICKY TOP.
       Channels List: Main View.
       Categories: Dropdown/Overlay Trigger.
    */

    .pane-player {
        width: 100%;
        height: 35vh;

        order: 1;

        flex-shrink: 0;
        z-index: 50;
    }

    .pane-channels {
        width: 100%;
        height: auto;
        flex-grow: 1;

        order: 2;
        border-right: none;
        background: var(--bg-color);
        padding-bottom: 0;

    }

    .pane-categories {
        position: absolute;
        top: 35vh;

        left: 0;
        width: 250px;

        height: 65vh;

        z-index: 100;

        transform: translateX(-100%);

        transition: transform 0.3s ease;
        background: rgba(15, 15, 20, 0.98);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    }


    .pane-categories.show-mobile {
        transform: translateX(0);
    }





    .category-item {
        padding: 1rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }


    .filter-bar {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .search-input {
        width: 100%;
    }

    .playlist-form {
        padding: 1.5rem;
    }
}


@media (max-width: 380px) {
    .content-grid {
        grid-template-columns: 1fr;

    }
}

/* KWELI.TV HOMEPAGE REDESIGN LAYOUT STYLES - FULLY RESPONSIVE ACROSS ALL DEVICES */
:root {
    --kweli-orange: #dc7832;
    --kweli-orange-hover: #a5551c;
    --kweli-bg: #000000;
    --kweli-card-bg: #2b2b2b;
    --kweli-text: #ffffff;
    --kweli-text-muted: #b2b2b2;
    --kweli-nav-height: 64px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--kweli-nav-height);
}

body {
    background-color: var(--kweli-bg) !important;
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: var(--kweli-text) !important;
    display: block !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   NAVIGATION BAR & MOBILE DRAWER
   ========================================================================== */
.kweli-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--kweli-nav-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.kweli-nav .logo {
    display: flex;
    align-items: center;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 800;
    color: white !important;
    margin: 0 !important;
    background: none !important;
    -webkit-text-fill-color: white !important;
    text-decoration: none;
    user-select: none;
    flex-shrink: 0;
}

.kweli-nav .logo img {
    height: clamp(28px, 4vw, 36px);
    width: auto;
    margin-right: 8px;
    object-fit: contain;
}

.kweli-nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.kweli-nav-links a {
    color: var(--kweli-text);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    letter-spacing: 0.5px;
    padding: 0.5rem 0.25rem;
    position: relative;
    transition: color 0.25s ease;
}

.kweli-nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--kweli-orange);
    transition: width 0.25s ease;
}

.kweli-nav-links a:hover,
.kweli-nav-links a.active {
    color: var(--kweli-orange);
}

.kweli-nav-links a:hover::after,
.kweli-nav-links a.active::after {
    width: 100%;
}

.kweli-nav-actions {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    flex-shrink: 0;
}

.kweli-nav-actions .nav-search-btn {
    color: white;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem;
    border: none;
    background: transparent;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kweli-nav-actions .nav-search-btn:hover {
    color: var(--kweli-orange);
    transform: scale(1.1);
}

.kweli-btn-outline {
    background: transparent;
    border: 1px solid var(--kweli-text);
    color: var(--kweli-text);
    padding: 0.45rem clamp(0.75rem, 1.5vw, 1.2rem);
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    white-space: nowrap;
    transition: all 0.25s ease;
}

.kweli-btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.kweli-btn-solid {
    background: var(--kweli-orange);
    color: white;
    border: none;
    padding: 0.5rem clamp(0.85rem, 1.8vw, 1.3rem);
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(220, 120, 50, 0.3);
}

.kweli-btn-solid:hover {
    background: var(--kweli-orange-hover);
    box-shadow: 0 6px 16px rgba(220, 120, 50, 0.45);
    transform: translateY(-1px);
}

/* Mobile Hamburger Toggle */
.kweli-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.35rem;
    padding: 0.5rem;
    cursor: pointer;
    line-height: 1;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s;
}

.kweli-menu-toggle:hover {
    color: var(--kweli-orange);
}

/* Mobile Slide-down Drawer */
.kweli-mobile-menu {
    position: fixed;
    top: var(--kweli-nav-height);
    left: 0;
    width: 100%;
    background: rgba(12, 12, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
    padding: 1.5rem 5% 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    z-index: 999;
    max-height: calc(100dvh - var(--kweli-nav-height));
    overflow-y: auto;
}

.kweli-mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.kweli-mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.kweli-mobile-nav-links a {
    color: var(--kweli-text);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kweli-mobile-nav-links a:hover,
.kweli-mobile-nav-links a:active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--kweli-orange);
}

.kweli-mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.kweli-mobile-menu-actions .kweli-btn-outline,
.kweli-mobile-menu-actions .kweli-btn-solid {
    width: 100%;
    padding: 0.85rem;
    font-size: 0.95rem;
    text-align: center;
}

.kweli-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.kweli-menu-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.kweli-hero {
    min-height: calc(100vh - var(--kweli-nav-height));
    min-height: calc(100dvh - var(--kweli-nav-height));
    height: auto;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.4) 100%), url('../images/hero_bg.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: clamp(3rem, 7vw, 6rem) 5%;
    margin-top: var(--kweli-nav-height);
    box-sizing: border-box;
    position: relative;
}

.kweli-hero-content {
    max-width: 850px;
    width: 100%;
    z-index: 2;
}

.kweli-tag {
    color: var(--kweli-orange);
    display: inline-block;
    font-size: clamp(0.75rem, 1.8vw, 0.95rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
    letter-spacing: clamp(1px, 0.4vw, 2.5px);
    background: rgba(220, 120, 50, 0.12);
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
    border: 1px solid rgba(220, 120, 50, 0.3);
}

.kweli-hero-content h1 {
    font-size: clamp(2rem, 5.5vw, 4rem);
    font-weight: 900;
    color: var(--kweli-text);
    text-transform: uppercase;
    line-height: 1.12;
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
    letter-spacing: -0.5px;
    word-break: break-word;
}

.kweli-hero-content h2 {
    font-size: clamp(1rem, 2.4vw, 1.45rem);
    font-weight: 600;
    color: #e0e0e0;
    text-transform: uppercase;
    line-height: 1.4;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    max-width: 700px;
}

.kweli-hero-content p {
    font-size: clamp(0.92rem, 1.8vw, 1.15rem);
    color: var(--kweli-text-muted);
    margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
    line-height: 1.6;
    max-width: 650px;
}

.kweli-hero-btn {
    background: var(--kweli-orange);
    color: white;
    padding: clamp(0.85rem, 2vw, 1.1rem) clamp(1.75rem, 4vw, 3rem);
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(220, 120, 50, 0.4);
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.kweli-hero-btn:hover {
    background: var(--kweli-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(220, 120, 50, 0.55);
}

/* ==========================================================================
   FEATURE BLOCKS
   ========================================================================== */
.kweli-feature-block {
    padding: clamp(3.5rem, 7vw, 5.5rem) 5%;
    background: var(--kweli-bg);
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    width: 100%;
}

.kweli-feature-block.alt-bg {
    background: var(--kweli-card-bg);
    border-top: none;
}

.kweli-feature-block.text-center {
    text-align: center;
    justify-content: center;
}

.kweli-feature-block.flex-column {
    flex-direction: column;
}

.kweli-feature-content {
    max-width: 700px;
    width: 100%;
}

.kweli-feature-content h2,
.kweli-feature-heading {
    font-size: clamp(1.8rem, 4.5vw, 2.75rem);
    color: var(--kweli-text);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.kweli-feature-content p {
    color: var(--kweli-text-muted);
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    line-height: 1.65;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

/* ==========================================================================
   CAROUSEL SECTION (WHAT'S NEW)
   ========================================================================== */
.kweli-section {
    padding: clamp(3rem, 6vw, 4.5rem) 5%;
    background: var(--kweli-bg);
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.kweli-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
    gap: 1rem;
    flex-wrap: wrap;
}

.kweli-section-title {
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--kweli-text);
    text-transform: uppercase;
    margin: 0;
    letter-spacing: -0.5px;
}

.kweli-carousel-controls {
    display: flex;
    gap: 0.5rem;
}

.kweli-carousel-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.kweli-carousel-arrow:hover {
    background: var(--kweli-orange);
    border-color: var(--kweli-orange);
    transform: scale(1.08);
}

.kweli-carousel-container {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 1.25rem;
    scrollbar-width: thin;
    scrollbar-color: var(--kweli-orange) rgba(255, 255, 255, 0.1);
    -webkit-overflow-scrolling: touch;
}

.kweli-carousel-container::-webkit-scrollbar {
    height: 6px;
}

.kweli-carousel-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.kweli-carousel-container::-webkit-scrollbar-thumb {
    background-color: var(--kweli-orange);
    border-radius: 4px;
}

.kweli-carousel-track {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
    width: max-content;
    padding: 4px 2px;
}

.kweli-card {
    cursor: pointer;
    background: var(--kweli-bg);
    transition: transform 0.25s ease;
}

.kweli-card.kweli-poster-card {
    width: clamp(160px, 22vw, 240px);
    scroll-snap-align: start;
    flex: 0 0 auto;
}

.kweli-poster-card .kweli-card-img {
    aspect-ratio: 2 / 3;
}

.kweli-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    background: var(--kweli-card-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.kweli-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}

.kweli-card:hover .kweli-card-img img {
    transform: scale(1.06);
}

.kweli-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(2.2rem, 4vw, 3rem);
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

.kweli-card:hover .kweli-play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.kweli-card-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 0.2rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.kweli-card-title {
    color: var(--kweli-text);
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kweli-card-subtitle {
    color: var(--kweli-text-muted);
    font-size: clamp(0.75rem, 1.2vw, 0.82rem);
}

/* ==========================================================================
   DEVICE SUPPORT SECTION
   ========================================================================== */
.kweli-devices-grid {
    display: flex;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.kweli-device-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    color: #b2b2b2;
    transition: all 0.25s ease;
    min-width: 80px;
}

.kweli-device-item i {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    transition: color 0.25s ease, transform 0.25s ease;
}

.kweli-device-item span {
    font-size: clamp(0.85rem, 1.6vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.kweli-device-item:hover {
    color: white;
    transform: translateY(-4px);
}

.kweli-device-item:hover i {
    color: var(--kweli-orange);
}

/* ==========================================================================
   PRICING PLAN SECTION
   ========================================================================== */
.kweli-plans-grid {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.kweli-plan-card {
    background: var(--kweli-card-bg);
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 12px;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kweli-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.kweli-plan-card.kweli-plan-featured {
    border: 2px solid var(--kweli-orange);
    box-shadow: 0 10px 30px rgba(220, 120, 50, 0.2);
}

.kweli-plan-badge {
    background: var(--kweli-orange);
    color: white;
    padding: 0.35rem 1.25rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

.kweli-plan-title {
    color: var(--kweli-orange);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.kweli-plan-price {
    font-size: clamp(2rem, 3.8vw, 2.7rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    line-height: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 4px;
}

.kweli-plan-period {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--kweli-text-muted);
    white-space: nowrap;
}

.kweli-plan-desc {
    color: var(--kweli-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.kweli-plan-btn {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border-radius: 8px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.kweli-footer {
    background: var(--kweli-bg);
    padding: clamp(3rem, 6vw, 4.5rem) 5% 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    width: 100%;
}

.kweli-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 2.5rem;
}

.kweli-footer-col h4 {
    color: var(--kweli-text);
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kweli-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kweli-footer-col ul li {
    margin-bottom: 0.75rem;
}

.kweli-footer-col ul li a {
    color: var(--kweli-text-muted);
    text-decoration: none;
    font-size: clamp(0.85rem, 1.4vw, 0.92rem);
    transition: color 0.25s ease;
    display: inline-block;
    padding: 2px 0;
}

.kweli-footer-col ul li a:hover {
    color: var(--kweli-orange);
    transform: translateX(2px);
}

.kweli-newsletter {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kweli-newsletter input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--kweli-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 6px;
    font-size: 0.92rem;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.kweli-newsletter input:focus {
    border-color: var(--kweli-orange);
}

.kweli-newsletter button {
    width: 100%;
    background: var(--kweli-orange);
    color: white;
    border: none;
    padding: 0.85rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.25s ease;
    box-sizing: border-box;
}

.kweli-newsletter button:hover {
    background: var(--kweli-orange-hover);
}

.kweli-social {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}

.kweli-social a {
    color: var(--kweli-text-muted);
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
}

.kweli-social a:hover {
    color: var(--kweli-orange);
    transform: translateY(-2px);
}

.kweli-copyright {
    color: #777;
    font-size: clamp(0.8rem, 1.4vw, 0.9rem);
    margin-top: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    line-height: 1.6;
}

/* ==========================================================================
   PWA INSTALL BUTTON
   ========================================================================== */
#installAppBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--kweli-orange, #ff6b00);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: transform 0.25s, background 0.25s;
}

#installAppBtn:hover {
    transform: scale(1.05);
    background: var(--kweli-orange-hover, #e05e00);
}

#installAppBtn img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    background: #000;
}

/* ==========================================================================
   MEDIA QUERIES FOR COMPREHENSIVE RESPONSIVENESS
   ========================================================================== */

/* Large Desktops / Ultra-wide (> 1440px) */
@media (min-width: 1440px) {

    .kweli-nav,
    .kweli-hero,
    .kweli-feature-block,
    .kweli-section,
    .kweli-footer {
        padding-left: max(5%, calc((100% - 1380px) / 2));
        padding-right: max(5%, calc((100% - 1380px) / 2));
    }
}

/* Tablets & Small Laptops (992px to 1199px) */
@media (max-width: 1199px) {
    .kweli-nav-links {
        gap: 1.25rem;
    }
}

/* Tablets (769px to 991px) */
@media (max-width: 991px) {
    .kweli-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .kweli-newsletter-col {
        grid-column: span 2;
    }

    .kweli-devices-grid {
        gap: 2.5rem;
    }
}

/* Mobile & Small Tablets (<= 768px) */
@media (max-width: 768px) {
    :root {
        --kweli-nav-height: 58px;
    }

    /* Hide desktop nav links, reveal hamburger */
    .kweli-nav-links {
        display: none;
    }

    .kweli-menu-toggle {
        display: inline-flex;
    }

    /* Keep Search icon and compact buttons in nav */
    .kweli-nav-actions .kweli-btn-outline {
        display: none;
        /* Accessible inside mobile drawer */
    }

    .kweli-hero {
        background-position: center 30%;
        padding-top: 2.5rem;
        padding-bottom: 3.5rem;
    }

    .kweli-card.kweli-poster-card {
        width: 180px;
    }

    .kweli-devices-grid {
        gap: 2rem;
        justify-content: center;
    }

    .kweli-device-item {
        min-width: 70px;
    }

    .kweli-plans-grid {
        flex-direction: column;
        align-items: center;
    }

    .kweli-plan-card {
        max-width: 360px;
    }

    .kweli-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .kweli-newsletter-col {
        grid-column: span 1;
    }
}

/* Small Phones (<= 480px) */
@media (max-width: 480px) {
    .kweli-nav {
        padding: 0 4%;
    }

    .kweli-nav .logo span {
        font-size: 1.15rem;
    }

    .kweli-nav .logo img {
        height: 26px;
        margin-right: 6px;
    }

    .kweli-nav-actions {
        gap: 0.5rem;
    }

    .kweli-btn-solid {
        padding: 0.45rem 0.8rem;
        font-size: 0.75rem;
    }

    .kweli-hero-btn {
        width: 100%;
        box-sizing: border-box;
    }

    .kweli-card.kweli-poster-card {
        width: 160px;
    }

    .kweli-devices-grid {
        gap: 1.5rem 2rem;
    }

    .kweli-device-item {
        min-width: calc(33.333% - 1.5rem);
    }

    #installAppBtn {
        bottom: 15px;
        right: 15px;
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    #installAppBtn .install-text {
        font-size: 0.78rem;
    }

    .auth-box {
        padding: 1.5rem 1.15rem;
        border-radius: 14px;
    }

    .auth-box h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .auth-logo {
        margin-bottom: 1.25rem;
    }

    .auth-logo img {
        height: 48px;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-control {
        padding: 0.85rem;
        font-size: 0.95rem;
    }
}

/* Extra Small Phones (<= 360px) */
@media (max-width: 360px) {
    .kweli-nav .logo span {
        display: none;
        /* Show icon only to prevent any navbar squishing */
    }

    .kweli-card.kweli-poster-card {
        width: 145px;
    }

    .kweli-devices-grid {
        gap: 1.25rem 1rem;
    }

    .kweli-device-item {
        min-width: calc(50% - 1rem);
    }
}

/* Landscape Mode on Small Devices (Phones held sideways) */
@media (max-height: 520px) and (orientation: landscape) {
    :root {
        --kweli-nav-height: 48px;
    }

    .kweli-hero {
        min-height: auto;
        padding: 2.5rem 5%;
    }

    .kweli-mobile-menu {
        max-height: calc(100vh - 48px);
        overflow-y: auto;
    }

    .auth-modal {
        align-items: flex-start;
        padding: 1rem;
    }

    .auth-box {
        padding: 1.25rem;
    }
}