/* FENOGRAM - HTML5 + jQuery Version */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap');

:root {
    --fenogram-black: #0a0a0a;
    --fenogram-charcoal: #1a1a1a;
    --fenogram-dark-gray: #2a2a2a;
    --fenogram-yellow: #FFFF8A;
    --fenogram-yellow-glow: rgba(255, 255, 138, 0.3);
    --fenogram-white: #f5f5f5;
    --fenogram-text-gray: #b3b3b3;
    --fenogram-radius: 12px;
    --fenogram-radius-sm: 8px;
    --transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 200;
    background-color: var(--fenogram-black);
    color: var(--fenogram-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Black scrollbar */
body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: #000000;
}

body::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 6px;
}

body::-webkit-scrollbar-thumb:hover {
    background: #2a2a2a;
}

/* Firefox scrollbar */
body {
    scrollbar-width: thin;
    scrollbar-color: #1a1a1a #000000;
}

/* Prevent layout shift when modal opens */
body.modal-open {
    overflow: hidden;
    padding-right: 12px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    letter-spacing: -0.02em;
}

button {
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    border: none;
    outline: none;
}

/* Sidebar Header */
#sidebar-header {
    position: fixed;
    left: 0;
    top: 0;
    width: 80px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.85) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 1000;
    border-right: 1px solid rgba(128, 128, 128, 0.5);
}

#sidebar-header .logo {
    margin-bottom: 60px;
    cursor: pointer;
}

#sidebar-header .logo img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

#sidebar-header .nav-icons {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: auto;
    margin-bottom: auto;
}

#sidebar-header .nav-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--fenogram-text-gray);
    transition: all 0.2s var(--transition-smooth);
}

#sidebar-header .nav-icon:hover {
    color: var(--fenogram-yellow);
    transform: scale(1.15);
}

#sidebar-header .menu-icon {
    width: 30px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-top: auto;
    transition: all 0.2s var(--transition-smooth);
}

#sidebar-header .menu-icon:hover {
    transform: scale(1.1);
}

#sidebar-header .menu-icon svg {
    transition: all 0.2s var(--transition-smooth);
}

#sidebar-header .menu-icon:hover svg line {
    stroke: var(--fenogram-yellow);
}

/* Main Content */
#main-content {
    margin-left: 80px;
    min-height: 100vh;
}

/* Hero Billboard with Animated Posters */
.hero-billboard {
    position: relative;
    height: 65vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 60px;
}

/* Animated Poster Background */
.poster-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    z-index: 0;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.poster-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: scrollUp 40s linear infinite;
    flex-shrink: 0;
}

.poster-column img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 6px;
    opacity: 0.4;
    flex-shrink: 0;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

/* Top Gradient - starts from black and fades to transparent */
.hero-gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 25%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0.6) 50%, transparent 100%);
    z-index: 1;
}

/* Bottom Gradient - starts from black and goes to transparent (higher and darker) */
.hero-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.95) 20%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    z-index: 1;
}

/* Center dark overlay for better text readability */
.hero-billboard::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

/* Hero Content - Centered */
.hero-content-center {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-main-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 2px 4px 16px rgba(0, 0, 0, 0.9);
    color: var(--fenogram-white);
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 200;
    line-height: 1.6;
    margin-bottom: 28px;
    color: var(--fenogram-white);
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.9);
}

/* Hero Signup Form */
.hero-signup-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
}

.hero-email-input {
    padding: 16px 24px 16px 32px;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    border-left: 6px solid var(--fenogram-yellow);
    color: var(--fenogram-white);
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 200;
    width: 380px;
    transition: all 0.2s var(--transition-smooth);
}

.hero-email-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hero-email-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--fenogram-yellow);
    background-color: rgba(255, 255, 255, 0.08);
}

.hero-join-btn {
    padding: 16px 36px;
    background-color: rgba(255, 255, 138, 0.08);
    backdrop-filter: blur(5px);
    color: var(--fenogram-white);
    border: none;
    border-left: 6px solid var(--fenogram-yellow);
    border-radius: 3px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s var(--transition-smooth);
}

.hero-join-btn:hover {
    background-color: rgba(255, 255, 138, 0.15);
}

.hero-cancel-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

/* Buttons */
.btn-primary {
    padding: 12px 28px;
    background-color: var(--fenogram-yellow);
    color: var(--fenogram-black);
    border: none;
    border-radius: var(--fenogram-radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s var(--transition-smooth), box-shadow 0.2s var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(255, 255, 138, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 255, 138, 0.5);
}

.btn-secondary {
    padding: 12px 28px;
    background-color: rgba(42, 42, 42, 0.8);
    color: var(--fenogram-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--fenogram-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s var(--transition-smooth), border-color 0.2s var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(42, 42, 42, 1);
    border-color: var(--fenogram-yellow);
}

/* Modal buttons */
.modal .btn-primary,
.modal .btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--fenogram-white);
    border: none;
    border-left: 5px solid var(--fenogram-yellow);
    border-radius: 0;
    font-weight: 600;
    box-shadow: none;
}

.modal .btn-primary:hover,
.modal .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: none;
    box-shadow: none;
}

/* Login modal primary button - more prominent */
#login-modal .btn-primary {
    background-color: rgba(255, 255, 138, 0.08);
}

#login-modal .btn-primary:hover {
    background-color: rgba(255, 255, 138, 0.15);
}

/* Signup modal primary button - same style */
#signup-modal .btn-primary {
    background-color: rgba(255, 255, 138, 0.08);
}

#signup-modal .btn-primary:hover {
    background-color: rgba(255, 255, 138, 0.15);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Carousel Section */
.carousel-section {
    padding: 40px 60px;
}

/* En Çok İzlenenler - Koyu gri arka plan + Gradient geçişi (üstte) */
.carousel-section:nth-of-type(3) {
    background-color: #0a0a0a;
    position: relative;
}

/* Gradient overlay - section'ın EN ÜSTÜNDE (siyahtan koyu griye geçiş) */
.carousel-section:nth-of-type(3)::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(5, 5, 5, 0.9) 20%,
        rgba(10, 10, 10, 0.6) 50%, 
        rgba(10, 10, 10, 0.2) 80%, 
        rgba(10, 10, 10, 0) 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* Content should be above gradient */
.carousel-section:nth-of-type(3) .section-title,
.carousel-section:nth-of-type(3) .carousel-container {
    position: relative;
    z-index: 1;
}

/* Bu Hafta Popüler - Çok koyu gri arka plan (siyaha yakın) */
.carousel-section:nth-of-type(3) {
    background-color: #0a0a0a;
}

.carousel-section .section-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 24px;
    padding-left: 4px;
}

.carousel-container {
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track.active {
    cursor: grabbing;
    scroll-behavior: auto;
}

.carousel-track.active .content-card {
    pointer-events: none;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--fenogram-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s, background-color 0.2s;
}

.carousel-container:hover .carousel-prev,
.carousel-container:hover .carousel-next {
    opacity: 1;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, 0.95);
    border-color: var(--fenogram-yellow);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Content Card */
.content-card {
    min-width: 220px;
    height: 330px;
    border-radius: var(--fenogram-radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.content-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s var(--transition-smooth);
}

/* Hover zoom disabled as per user request */
.content-card:hover img {
    transform: scale(1);
}

.content-card .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: lowercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.95) 30%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.content-card:hover .card-overlay {
    opacity: 1;
}

.content-card .card-overlay h3 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.content-card .card-overlay .card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--fenogram-text-gray);
    font-weight: 200;
}

.content-card .card-overlay .card-meta span:not(:last-child):not(.maturity)::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 12px;
    background-color: var(--fenogram-yellow);
    margin-left: 10px;
    vertical-align: middle;
}

.content-card .card-overlay .card-meta .maturity {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: none;
}

.content-card .card-overlay .card-meta .maturity img {
    height: 20px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Backdrop Overlay */
#backdrop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--transition-smooth);
}

#backdrop-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Modal Base */
.modal {
    position: fixed;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);
    border-radius: 0;
    box-shadow: none;
    padding: 35px;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    display: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateY(-20px);
    opacity: 0;
    transition: transform 0.35s var(--transition-smooth), opacity 0.35s var(--transition-smooth);
    border-left: 5px solid var(--fenogram-yellow);
    border: 1px solid rgba(128, 128, 128, 0.5);
    border-left: 5px solid var(--fenogram-yellow);
}

.modal.active {
    display: block;
    animation: slideDown 0.35s var(--transition-smooth) forwards;
}

#search-modal.active {
    animation: slideDownSearch 0.35s var(--transition-smooth) forwards;
}

@keyframes slideDown {
    to {
        transform: translate(-50%, -50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideDownSearch {
    from {
        transform: translate(-50%, -40px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.modal-close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    background: none;
    border: none;
    font-size: 0;
    transition: all 0.2s var(--transition-smooth);
    z-index: 2001;
}

.menu-close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    background: none;
    border: none;
    font-size: 0;
    transition: all 0.2s var(--transition-smooth);
    z-index: 2001;
}

.modal-close:hover,
.menu-close:hover {
    opacity: 0.7;
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.menu-close svg {
    width: 28px;
    height: 28px;
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-tagline {
    display: none;
}

.modal-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 6px;
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: none;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: var(--fenogram-white);
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 200;
    transition: background-color 0.2s var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Signup modal - same as login (no yellow border on inputs) */
#signup-modal .form-group label {
    display: none;
}

#signup-modal .form-group input,
#signup-modal .form-group select {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 16px 0;
}

.form-checkbox-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--fenogram-yellow);
}

.form-checkbox label {
    font-size: 0.9rem;
    color: var(--fenogram-text-gray);
    cursor: pointer;
    font-weight: 200;
}

#signup-modal .form-checkbox {
    justify-content: flex-start;
}

.form-link {
    color: var(--fenogram-white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.form-link:hover {
    opacity: 0.7;
}

.form-footer {
    margin-top: 20px;
    text-align: center;
    font-weight: 200;
}

.form-divider {
    margin: 24px 0;
    text-align: center;
    color: var(--fenogram-text-gray);
    font-weight: 200;
}

.progress-bar {
    display: none;
}

.progress-fill {
    display: none;
}

.country-select {
    appearance: none;
    cursor: pointer;
}

/* Search Modal */
#search-modal {
    max-width: 900px;
    width: 90%;
    left: 50%;
    top: 10%;
    transform: translate(-50%, -20px);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);
    box-shadow: none;
    padding: 35px;
    border-left: 5px solid var(--fenogram-yellow);
    border-radius: 0;
}

#search-modal .modal-header {
    margin-bottom: 24px;
}

#search-modal .modal-title {
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 4px;
}

#search-modal .modal-subtitle {
    font-size: 0.9rem;
    font-weight: 200;
    color: var(--fenogram-text-gray);
    text-align: center;
    margin-bottom: 16px;
}

.search-container {
    position: relative;
    margin-bottom: 24px;
}

.search-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: var(--fenogram-yellow);
}

#search-input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: var(--fenogram-white);
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 200;
    transition: border-color 0.2s var(--transition-smooth);
}

#search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.08);
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
}

.search-icon line,
.search-icon circle {
    stroke: #fff;
}

#search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

/* Side Menu - Modal Style */
#side-menu {
    position: fixed;
    top: 0;
    left: -100%;
    bottom: 0;
    width: 450px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 30px 50px 30px 50px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    transition: left 0.35s var(--transition-smooth);
    overflow-y: auto;
    overflow-x: hidden;
}

#side-menu.active {
    left: 0;
    animation: slideInFromLeft 0.35s var(--transition-smooth) forwards;
}

#side-menu.closing {
    animation: slideOutToLeft 0.3s var(--transition-smooth) forwards;
}

@keyframes slideInFromLeft {
    from {
        left: -100%;
    }
    to {
        left: 0;
    }
}

@keyframes slideOutToLeft {
    from {
        left: 0;
    }
    to {
        left: -100%;
    }
}

.menu-header {
    margin-bottom: 32px;
    margin-top: 0;
    padding-top: 13px;
    flex-shrink: 0;
}

.menu-brand {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0;
    color: var(--fenogram-white);
    line-height: 1.2;
}

.menu-tagline {
    font-size: 0.95rem;
    font-weight: 200;
    color: var(--fenogram-text-gray);
    margin-top: 4px;
}

.menu-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 22px;
    flex-shrink: 0;
}

.menu-link {
    display: block;
    padding: 11px 24px;
    color: var(--fenogram-white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
    border-left: 4px solid transparent;
    transition: all 0.2s var(--transition-smooth);
}

.menu-link:hover {
    border-left-color: var(--fenogram-yellow);
    padding-left: 32px;
}

.menu-link.active {
    border-left-color: var(--fenogram-yellow);
    padding-left: 32px;
}

.menu-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    margin: 18px 24px 15px 24px;
    flex-shrink: 0;
}

.menu-secondary {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.menu-secondary-link {
    display: block;
    padding: 7px 24px;
    color: var(--fenogram-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s var(--transition-smooth);
}

.menu-secondary-link:hover {
    color: var(--fenogram-yellow);
    padding-left: 28px;
}

.menu-copyright {
    font-size: 0.65rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.4;
    padding: 0 24px;
    margin-top: auto;
    flex-shrink: 0;
}

/* Short screen optimization for desktop menu */
@media (max-height: 720px) {
    #side-menu {
        padding: 20px 40px 20px 40px;
    }
    
    .menu-header {
        margin-bottom: 18px;
        margin-top: 0;
        padding-top: 25px;
    }
    
    .menu-brand {
        font-size: 1.8rem;
    }
    
    .menu-tagline {
        font-size: 0.88rem;
    }
    
    .menu-link {
        font-size: 1.3rem;
        padding: 9px 20px;
    }
    
    .menu-link:hover {
        padding-left: 28px;
    }
    
    .menu-divider {
        margin: 14px 20px 12px 20px;
    }
    
    .menu-secondary-link {
        font-size: 0.85rem;
        padding: 6px 20px;
    }
    
    .menu-secondary-link:hover {
        padding-left: 24px;
    }
    
    .menu-copyright {
        font-size: 0.6rem;
        line-height: 1.3;
        padding: 0 20px;
    }
}

/* Extra short screens - more aggressive optimization */
@media (max-height: 600px) {
    #side-menu {
        padding: 15px 35px 15px 35px;
    }
    
    .menu-header {
        margin-bottom: 12px;
        margin-top: 0;
        padding-top: 20px;
    }
    
    .menu-brand {
        font-size: 1.6rem;
    }
    
    .menu-tagline {
        font-size: 0.82rem;
    }
    
    .menu-content {
        margin-bottom: 14px;
    }
    
    .menu-link {
        font-size: 1.15rem;
        padding: 7px 18px;
    }
    
    .menu-link:hover {
        padding-left: 26px;
    }
    
    .menu-divider {
        margin: 10px 18px 10px 18px;
    }
    
    .menu-secondary {
        margin-bottom: 14px;
    }
    
    .menu-secondary-link {
        font-size: 0.82rem;
        padding: 5px 18px;
    }
    
    .menu-secondary-link:hover {
        padding-left: 22px;
    }
    
    .menu-copyright {
        font-size: 0.57rem;
        line-height: 1.25;
    }

    
    /* Mobile Modals */
    .modal {
        max-width: 100%;
        width: 100%;
        height: auto;
        max-height: 85vh;
        padding: 16px;
        border-radius: 0;
        border: 1px solid rgba(128, 128, 128, 0.5);
        border-top: 3px solid var(--fenogram-yellow);
        left: 0;
        top: 0;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.4s var(--transition-smooth), opacity 0.4s var(--transition-smooth);
        overflow-y: auto;
    }
    
    .modal.active {
        transform: translateY(0);
        opacity: 1;
        animation: none;
    }
    
    #search-modal.active {
        animation: none;
    }
    
    /* Login Modal - Minimal & No Scroll */
    #login-modal {
        height: auto;
        max-height: 100vh;
        overflow: hidden;
        padding: 10px 14px 12px;
        display: flex;
        flex-direction: column;
    }
    
    #login-modal form {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    @keyframes slideDown {
        to {
            top: 0;
            opacity: 1;
        }
    }
    
    .modal-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        z-index: 2002;
    }
    
    .modal-close svg {
        width: 16px;
        height: 16px;
    }
    
    .modal-header {
        margin-bottom: 10px;
        margin-top: 35px;
    }
    
    .modal-title {
        font-size: 0.95rem;
    }
    
    .modal-subtitle {
        font-size: 0.68rem;
    }
    
    .modal-tagline {
        font-size: 0.6rem;
        margin-bottom: 4px;
    }
    
    /* Login Modal Specific - Ultra Compact */
    #login-modal .modal-header {
        margin-top: 24px;
        margin-bottom: 6px;
    }
    
    #login-modal .modal-tagline {
        font-size: 0.52rem;
        margin-bottom: 1px;
        line-height: 1.2;
    }
    
    #login-modal .modal-title {
        font-size: 0.85rem;
        margin-bottom: 0;
        line-height: 1.1;
    }
    
    /* Form Styles Mobile */
    .form-group {
        margin-bottom: 7px;
    }
    
    .form-group label {
        font-size: 0.7rem;
        margin-bottom: 3px;
    }
    
    .form-group input,
    .form-group select {
        padding: 6px 9px;
        font-size: 0.72rem;
        height: 34px;
    }
    
    /* Login Modal Forms - More Compact */
    #login-modal .form-group {
        margin-bottom: 5px;
    }
    
    #login-modal .form-group label {
        font-size: 0.65rem;
        margin-bottom: 2px;
    }
    
    #login-modal .form-group input {
        padding: 5px 7px;
        font-size: 0.68rem;
        height: 30px;
    }
    
    .form-row {
        gap: 6px;
    }
    
    .form-checkbox {
        font-size: 0.68rem;
        margin-bottom: 5px;
    }
    
    .form-checkbox label {
        font-size: 0.68rem;
    }
    
    #login-modal .form-checkbox {
        font-size: 0.62rem;
        margin-bottom: 3px;
        gap: 3px;
    }
    
    #login-modal .form-checkbox label {
        font-size: 0.62rem;
    }
    
    #login-modal .form-checkbox-left {
        gap: 3px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 7px;
        font-size: 0.78rem;
        height: 36px;
    }
    
    #login-modal .btn-primary,
    #login-modal .btn-secondary {
        padding: 5px;
        font-size: 0.72rem;
        height: 32px;
    }
    
    .form-divider {
        margin: 8px 0;
        font-size: 0.68rem;
    }
    
    #login-modal .form-divider {
        margin: 5px 0;
        font-size: 0.62rem;
    }
    
    .form-footer {
        font-size: 0.68rem;
        margin-top: 8px;
    }
    
    .form-link {
        font-size: 0.68rem !important;
    }
    
    #login-modal .form-link {
        font-size: 0.62rem !important;
    }
    
    /* Make modal border more visible */
    .modal {
        border: 1px solid rgba(128, 128, 128, 0.7) !important;
    }
    
    /* Search Modal Mobile */
    #search-modal {
        padding: 16px;
    }
    
    .search-container {
        margin-bottom: 12px;
    }
    
    #search-input {
        padding: 8px 35px 8px 10px;
        font-size: 0.8rem;
        height: 36px;
    }
    
    .search-icon {
        width: 14px;
        height: 14px;
        right: 10px;
    }
    
    #search-results {
        max-height: calc(100vh - 200px);
    }
    
    .search-result-item {
        padding: 10px;
    }
    
    .search-result-poster {
        width: 50px;
        height: 75px;
    }
    
    .search-result-title {
        font-size: 0.9rem;
    }
    
    .search-result-meta {
        font-size: 0.75rem;
    }


/* ==================== Category Page Styles ==================== */

/* Category page hero - compact and centered */
.category-page .hero-billboard.category-hero {
    height: 30vh;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0;
}

.category-page .hero-content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Genre Filter Buttons */
.genre-filter-section {
    padding: 30px 80px 20px;
    background-color: var(--fenogram-black);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.genre-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.genre-btn {
    padding: 10px 24px;
    background-color: rgba(42, 42, 42, 0.8);
    color: var(--fenogram-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    cursor: pointer;
}

.genre-btn:hover {
    background-color: rgba(255, 255, 138, 0.15);
    border-color: var(--fenogram-yellow);
    color: var(--fenogram-yellow);
}

.genre-btn.active {
    background-color: var(--fenogram-yellow);
    color: var(--fenogram-black);
    border-color: var(--fenogram-yellow);
    font-weight: 600;
}

/* SEO Text Section */
.seo-text-section {
    padding: 60px 80px;
    background-color: rgba(10, 10, 10, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
}

.seo-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--fenogram-yellow);
}

.seo-content {
    height: 40vh;
    overflow-y: auto;
    padding-right: 20px;
    line-height: 1.8;
    color: var(--fenogram-text-gray);
}

.seo-content::-webkit-scrollbar {
    width: 8px;
}

.seo-content::-webkit-scrollbar-track {
    background: rgba(42, 42, 42, 0.5);
    border-radius: 4px;
}

.seo-content::-webkit-scrollbar-thumb {
    background: var(--fenogram-yellow);
    border-radius: 4px;
}

.seo-content::-webkit-scrollbar-thumb:hover {
    background: var(--fenogram-yellow-glow);
}

.seo-content p {
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.seo-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--fenogram-white);
}

/* Add to List Button on Content Cards */
.category-page .content-card .add-to-list-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--fenogram-white);
    color: var(--fenogram-white);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

.category-page .content-card:hover .add-to-list-btn {
    opacity: 1;
}

.category-page .content-card .add-to-list-btn:hover {
    background-color: var(--fenogram-white);
    color: var(--fenogram-black);
    transform: rotate(90deg) scale(1.1);
}

/* Mobile adjustments for category page */
@media (max-width: 768px) {
    .category-page .hero-billboard.category-hero {
        height: 25vh;
        min-height: 200px;
    }
    
    .category-page .hero-main-title {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .category-page .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    .genre-filter-section {
        padding: 20px;
    }

    .genre-buttons {
        gap: 8px;
    }

    .genre-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .seo-text-section {
        padding: 40px 20px;
    }

    .seo-title {
        font-size: 1.5rem;
    }

    .seo-content {
        height: 35vh;
    }
}

@media (max-width: 480px) {
    .category-page .hero-billboard.category-hero {
        height: 22vh;
        min-height: 180px;
    }
    
    .category-page .hero-main-title {
        font-size: 1.6rem;
    }


/* Add to List Feedback */
.add-list-feedback {
    position: fixed;
    top: 100px;
    right: -300px;
    background-color: var(--fenogram-yellow);
    color: var(--fenogram-black);
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(255, 255, 138, 0.4);
    z-index: 10000;
    transition: right 0.3s ease;
}

.add-list-feedback.show {
    right: 20px;
}

    
    .category-page .hero-subtitle {
        font-size: 0.8rem;
    }

    .seo-content {
        height: 30vh;
    }
} */

