/* Netflix-Style CSS - Non-Critical Styles */

/* Global Styles */
.hero-description {
    margin: 2rem 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    max-width: 800px;
}

.hero-description p {
    margin-bottom: 1rem;
}

.hero-description ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.hero-description li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.hero-description li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--netflix-red);
}

.divider {
    color: #666;
    margin: 0 0.5rem;
}

/* Breadcrumbs Styles */
.breadcrumbs {
    padding: 1rem 4%;
    color: #aaa;
    font-size: 0.9rem;
}

.breadcrumbs nav {
    display: inline-block;
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    color: #666;
    margin-left: 0.5rem;
}

.breadcrumbs a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.breadcrumbs a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
    color: #aaa;
    cursor: default;
}

.breadcrumbs [aria-current="page"]:hover {
    text-decoration: none;
    opacity: 1;
}

@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 0.85rem;
        padding: 0.75rem 2%;
    }
    
    .breadcrumbs ol {
        gap: 0.25rem;
    }
    
    .breadcrumbs li:not(:last-child)::after {
        margin-left: 0.25rem;
    }
}

:root {
    --netflix-red: #e50914;
    --netflix-black: #000000;
    --netflix-dark: #141414;
    --netflix-gray: #808080;
    --netflix-light-gray: #e5e5e5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; }

/* Card Styles */
.card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.card-image {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: #1a1a1a;
}

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

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

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.card:hover .card-overlay {
    opacity: 0.5;
}

.card-rating {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 0.4rem 0.6rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 2;
    line-height: 1;
}

.card-year {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(229, 9, 20, 0.9);
    color: #fff;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    line-height: 1;
}

.card-info {
    padding: 1rem;
    background: #141414;
    min-height: 80px;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-origin-name {
    font-size: 0.85rem;
    color: #aaa;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .card-info {
        padding: 0.75rem;
        min-height: 70px;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    .card-origin-name {
        font-size: 0.8rem;
    }
    
    .card-rating {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
    
    .card-year {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
}

/* Serial Page Styles */
.serial-page {
    min-height: 100vh;
}

.serial-hero {
    position: relative;
    width: 100%;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 4rem;
    margin-bottom: 2rem;
}

.serial-hero-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.serial-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.serial-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.serial-meta .year,
.serial-meta .rating {
    background: rgba(0,0,0,0.6);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.serial-description {
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.serial-actions {
    display: flex;
    gap: 1rem;
}

.btn-play {
    background: var(--netflix-red);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-play:hover {
    background: #f40612;
    transform: scale(1.05);
}

.btn-play:active {
    transform: scale(0.98);
}

.btn-play span {
    font-size: 1.2rem;
}

/* Serial Content */
.serial-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 4%;
}

.serial-info {
    margin-bottom: 3rem;
}

.info-table {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.info-table table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th {
    text-align: left;
    padding: 0.75rem;
    color: var(--netflix-light-gray);
    font-weight: 600;
    width: 200px;
}

.info-table td {
    padding: 0.75rem;
    color: #fff;
}

.serial-description-full {
    margin-bottom: 3rem;
}

.serial-description-full p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
}

/* Series Grid */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.series-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    background: #1a1a1a;
    transition: transform 0.3s;
    cursor: pointer;
}

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

.series-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.series-item-number {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 1rem;
    font-weight: 600;
}

/* Player Container */
.player-container {
    margin: 3rem 0;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.player-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
.footer {
    background: var(--netflix-dark);
    padding: 3rem 4%;
    margin-top: 4rem;
    text-align: center;
    color: var(--netflix-gray);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .serial-title {
        font-size: 3rem;
    }
    
    .serial-hero {
        min-height: 50vh;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .serial-title {
        font-size: 2rem;
    }
    
    .serial-hero {
        min-height: 40vh;
        padding: 1.5rem;
    }
    
    .serial-description {
        font-size: 1rem;
    }
    
    .btn-play {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .series-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .info-table th {
        width: 120px;
        font-size: 0.9rem;
    }
    
    .info-table td {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.75rem 2%;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .container {
        padding: 1rem 2%;
    }
    
    .serial-hero {
        padding: 1rem;
    }
    
    .serial-content {
        padding: 1rem 2%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--netflix-red);
    outline-offset: 2px;
}

/* Search Results Styles */
.search-results {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Print styles */
@media print {
    .header,
    .footer,
    .btn-play,
    .player-container {
        display: none;
    }
}

