html, body {
    background-color: #0a0a0a;
    color: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    display: block;
}

.hideAll {
    display: none !important;
}

.view {
    padding: 2.5rem 0 3.5rem;
}

.section-spacing {
    margin-top: 3rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.section-title.small-title {
    font-size: 1.3rem;
}

.section-subtitle {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.header_background {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    padding: 1rem 0;
    border-bottom: 1px solid #2a2a2a;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.3rem;
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(111, 111, 111, 0.159);
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    background: linear-gradient(135deg, #ff0033 0%, #fa7ca6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    margin-bottom: 0;
}

.main-nav li {
    margin-left: 0.5rem;
}

.nav-link {
    background: transparent;
    border: none;
    color: #d0d0d0;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-link.is-active {
    background: linear-gradient(135deg, #ff0033 0%, #ff3366 100%);
    color: #ffffff;
}

.nav-login-btn {
    background: linear-gradient(135deg, #ff0033 0%, #ff3366 100%);
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 0, 51, 0.3);
}

.nav-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 0, 51, 0.4);
}

/*LOGIN MODAL*/
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-content {
    background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
    width: 90%;
    max-width: 440px;
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 100px rgba(255, 0, 51, 0.1);
    border: 1px solid #2a2a2a;
    animation: slideUp 0.4s ease;
}

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

.auth-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.auth-close:hover {
    background: rgba(255, 0, 51, 0.2);
    color: #ff0033;
    transform: rotate(90deg);
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.4rem;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
    border: none;
    color: #888;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: linear-gradient(135deg, #ff0033 0%, #ff3366 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 0, 51, 0.4);
}

.auth-heading {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.auth-input {
    width: 100%;
    padding: 1rem 1.2rem;
    margin: 0.5rem 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.auth-input:focus {
    outline: none;
    border-color: #ff0033;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 0, 51, 0.1);
}

.auth-input::placeholder {
    color: #666;
}

.auth-panel {
    display: none;
}

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

.auth-submit {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff0033 0%, #ff3366 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 0, 51, 0.3);
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 51, 0.5);
}

.auth-alt {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    display: block;
    cursor: pointer;
    transition: color 0.3s ease;
}

.auth-alt:hover {
    color: #ff0033;
}

/*HERO / TRAILER OVERLAY*/
.hero-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a1a;
    height: 560px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.hero-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.5rem;
    color: #ffffff;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.85) 40%,
        rgba(0, 0, 0, 0.6) 70%,
        transparent 100%
    );
    backdrop-filter: blur(2px);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.02em;
}

.hero-meta {
    font-size: 1.05rem;
    color: #e0e0e0;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.white-link{
    color: white;
}

/* Buttons */
.btn {
    border-radius: 10px;
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #ff0033 0%, #ff3366 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 0, 51, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 51, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/*SLIDERS*/
.trailer-slider .slick-slide {
    padding: 0 10px;
}

.movies-slider .slick-slide,
.tv-slider .slick-slide,
.cast-slider .slick-slide,
.person-movies-slider .slick-slide {
    padding: 0 10px;
}

.slick-prev,
.slick-next {
    width: 45px;
    height: 45px;
    background: rgba(255, 0, 51, 0.9) !important;
    border-radius: 50%;
    z-index: 100;
    transition: all 0.3s ease;
}

.slick-prev:hover,
.slick-next:hover {
    background: rgba(255, 0, 51, 1) !important;
    transform: scale(1.1);
}

.slick-prev:before,
.slick-next:before {
    font-size: 20px;
    opacity: 1;
}

.slick-prev {
    left: 15px;
}

.slick-next {
    right: 15px;
}

.slick-dots {
    bottom: 20px;
}

.slick-dots li button:before {
    font-size: 10px;
    color: #ffffff;
    opacity: 0.5;
}

.slick-dots li.slick-active button:before {
    opacity: 1;
    color: #ff0033;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/*CARDS*/
.card {
    background: linear-gradient(145deg, #1a1a1a 0%, #141414 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 0, 51, 0.2);
    border-color: #ff0033;
}

.card-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-body {
    padding: 1rem 1.1rem 1.2rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #ffffff;
    line-height: 1.3;
}

.card-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.4rem;
}

.card-rating {
    font-size: 0.9rem;
    color: #ffc107;
    font-weight: 600;
}

.cast-card .card-body {
    text-align: center;
}

.cast-card .card-image img {
    height: 300px;
}

.cast-character {
    font-size: 0.8rem;
    color: #777;
    margin-top: 0.2rem;
}

/*GALLERY WITH ARROWS*/
.gallery-thumb {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-more-label {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

.lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9);
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: rgba(255, 0, 51, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: #ff0033;
    transform: rotate(90deg) scale(1.1);
}
.lightbox-arrow {
    position: absolute;
    background: rgba(255, 0, 51, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-arrow:hover {
    background: #ff0033;
    transform: scale(1.15);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-counter {
    position: absolute;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/*MOVIE DETAIL PAGE*/
.info-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.info-list li {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    color: #ccc;
    line-height: 1.6;
}

.info-list strong {
    color: #fff;
    font-weight: 600;
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag {
    background: rgba(255, 0, 51, 0.15);
    border: 1px solid rgba(255, 0, 51, 0.3);
    border-radius: 20px;
    padding: 0.4rem 1.1rem;
    font-size: 0.85rem;
    color: #ff6699;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255, 0, 51, 0.25);
    transform: translateY(-2px);
}

/*PEOPLE PAGE*/
.person-photo img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    height: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.person-role {
    font-size: 1rem;
    color: #999;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.person-bio {
    font-size: 0.95rem;
    color: #b8b8b8;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.person-info-item {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.person-info-item strong {
    color: #fff;
    font-weight: 600;
}

.person-subheading {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/*SEARCH*/
#search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    border-color: #ff0033;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 0, 51, 0.1);
}

#search-input::placeholder {
    color: #666;
}

/*FOOTER*/
.site-footer {
    background: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
    border-top: 1px solid #2a2a2a;
    padding: 3rem 0 1.5rem;
    color: #999;
    margin-top: 4rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-text {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.6;
}

.footer-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.6rem;
}

.footer-link {
    background: none;
    border: none;
    padding: 0;
    color: #888;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ff0033;
}

.footer-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.footer-input:focus {
    outline: none;
    border-color: #ff0033;
    background: rgba(255, 255, 255, 0.08);
}

.footer-btn {
    width: 100%;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2a2a2a;
    font-size: 0.85rem;
    color: #666;
}
.link-button {
    background: transparent;
    border: none;
    color: #999;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    transition: color 0.3s ease;
}

.link-button:hover {
    color: #ff0033;
}

.poster-placeholder {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 12px;
}

/*RESPONSIVE*/
@media screen and (max-width: 640px) {
    .hero-card {
        height: 400px;
    }
    
    .hero-image img {
        height: 400px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-meta {
        font-size: 0.9rem;
    }
    
    .hero-overlay {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .lightbox-prev {
        left: 0.5rem;
    }
    
    .lightbox-next {
        right: 0.5rem;
    }
    
    .lightbox-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .auth-content {
        padding: 2rem 1.5rem;
    }
    
    .cast-card .card-image img {
        height: 250px;
    }
}

/* ================================
   MAD MOVIES - IMPROVED CARD STYLING
================================ */

/* Better Card Sizes and Spacing */
.card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

/* Movie Card Improvements */
.movie-card {
    cursor: pointer;
    position: relative;
}

.movie-card .card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.movie-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.movie-card:hover .card-image img {
    transform: scale(1.08);
}

/* Improved Card Body */
.card-body {
    padding: 1.25rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #1a1a1a;
}

/* BETTER TEXT STYLING */
.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover .card-title {
    color: #e50914;
}

.card-meta {
    font-size: 0.875rem;
    color: #999;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.card-rating {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffd700;
    margin: 0;
    margin-top: auto;
}

/* Cast Card Specific */
.cast-card .card-image {
    aspect-ratio: 3/4;
}

.cast-character {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin: 0;
}

/* Grid Spacing Improvements */
.grid-margin-x {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.grid-margin-x > .cell {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.grid-margin-y {
    margin-top: -0.75rem;
    margin-bottom: -0.75rem;
}

.grid-margin-y > .cell {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Section Spacing */
.section-spacing {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

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

/* Search Icon Styling */
.nav-search svg {
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.nav-search:hover svg {
    transform: scale(1.1);
}

/* Logo Cursor */
.logo-area {
    transition: opacity 0.2s ease;
}

.logo-area:hover {
    opacity: 0.8;
}

/* Person Info */
.person-info-item {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 0.75rem;
}

.person-info-item strong {
    color: #fff;
    font-weight: 600;
}

/* Responsive Card Improvements */
@media screen and (max-width: 1024px) {
    .card-title {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 640px) {
    .card-body {
        padding: 1rem 0.875rem;
    }
    
    .card-title {
        font-size: 0.95rem;
    }
    
    .card-meta {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }
}

/* ================================
   NETFLIX-STYLE CARD DESIGN
================================ */

/* Card Container */
.card {
    background: transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* Card Image - Netflix Style */
.movie-card .card-image,
.cast-card .card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 6px;
}

.cast-card .card-image {
    aspect-ratio: 3/4;
}

.movie-card .card-image img,
.cast-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

/* Netflix-Style Overlay - ALWAYS visible, enhanced on hover */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 40%, transparent 100%);
    padding: 0.75rem 0.75rem 0.6rem;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.card:hover .card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 60%, transparent 100%);
    padding: 1.25rem 1rem 1rem;
}

.card-overlay-content {
    color: #fff;
}

.overlay-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: all 0.3s ease;
}

.card:hover .overlay-title {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.overlay-meta {
    font-size: 0.8rem;
    color: #d0d0d0;
    margin: 0 0 0.3rem 0;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.card:hover .overlay-meta {
    font-size: 0.9rem;
    opacity: 1;
}

.overlay-rating {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffd700;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.card:hover .overlay-rating {
    font-size: 1.1rem;
    opacity: 1;
    transform: translateY(0);
}

/* Card Body - HIDDEN by default, only overlay shows */
.card-body {
    display: none;
    padding: 0.875rem 0.5rem;
    flex: 1;
    flex-direction: column;
    gap: 0.35rem;
    background: transparent;
}

/* Card Title - BIGGER & BOLDER */
.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #e5e5e5;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

/* Genre Text - Shows actual genre */
.card-meta {
    font-size: 0.85rem;
    color: #a3a3a3;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Rating - BIGGER & MORE PROMINENT */
.card-rating {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd700;
    margin: 0;
    margin-top: auto;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    letter-spacing: 0.02em;
}

/* Cast Character Name */
.cast-character {
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Grid Spacing - Netflix Style */
.grid-margin-x {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.grid-margin-x > .cell {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.grid-margin-y {
    margin-top: -0.5rem;
    margin-bottom: -0.5rem;
}

.grid-margin-y > .cell {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Section Spacing */
.section-spacing {
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

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

/* Search Icon */
.nav-search svg {
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.nav-search:hover svg {
    transform: scale(1.15);
}

/* Logo Hover */
.logo-area {
    transition: opacity 0.2s ease;
}

.logo-area:hover {
    opacity: 0.8;
}

/* Person Info */
.person-info-item {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 0.75rem;
}

.person-info-item strong {
    color: #fff;
    font-weight: 600;
}

/* Slick Slider Arrows - Netflix Style */
.slick-prev,
.slick-next {
    width: 50px;
    height: 50px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.7) !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.slick-prev:hover,
.slick-next:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    transform: scale(1.1);
}

.slick-prev {
    left: -25px;
}

.slick-next {
    right: -25px;
}

.slick-prev:before,
.slick-next:before {
    font-size: 30px;
    color: #fff;
    opacity: 1;
}

/* Slick Dots */
.slick-dots {
    bottom: -35px;
}

.slick-dots li button:before {
    font-size: 10px;
    color: #fff;
    opacity: 0.4;
}

.slick-dots li.slick-active button:before {
    opacity: 1;
    color: #e50914;
}

/* Responsive Improvements */
@media screen and (max-width: 1200px) {
    .overlay-title {
        font-size: 0.9rem;
    }
    
    .card:hover .overlay-title {
        font-size: 1.05rem;
    }
    
    .overlay-meta {
        font-size: 0.75rem;
    }
    
    .card:hover .overlay-meta {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 768px) {
    .overlay-title {
        font-size: 0.85rem;
    }
    
    .card:hover .overlay-title {
        font-size: 0.95rem;
    }
    
    .overlay-meta {
        font-size: 0.7rem;
    }
    
    .card:hover .overlay-meta {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .slick-prev {
        left: -15px;
    }
    
    .slick-next {
        right: -15px;
    }
}

@media screen and (max-width: 640px) {
    .overlay-title {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
    }
    
    .card:hover .overlay-title {
        font-size: 0.9rem;
    }
    
    .overlay-meta {
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 1.35rem;
    }
    
    .card:hover {
        transform: scale(1.03);
    }
}

/* Smooth Transitions for Everything */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}