/* Stranger Things Theme
   Inspired by Netflix's Stranger Things
   Dark retro 80s aesthetic with neon accents
*/

/* ==============================
   RESET & BASE
   ============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    /* Stranger Things Color Palette */
    --bg-main: #000000;
    --bg-panel: #0a0a0a;
    --bg-card: #111111;
    --bg-muted: rgba(255, 255, 255, 0.03);
    --bg-primary: #0a0a0a;
    --text-primary: #e5e5e5;
    --text-muted: #888888;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Stranger Things Red (Netflix-inspired) */
    --accent: #E50914;
    --accent-strong: #B20710;
    --accent-color: #E50914;
    --accent-glow: rgba(229, 9, 20, 0.5);
    
    /* Neon Blue (Stranger Things portal color) */
    --neon-blue: #00D4FF;
    --neon-blue-glow: rgba(0, 212, 255, 0.4);
    
    /* Gradients */
    --accent-gradient: linear-gradient(135deg, #E50914 0%, #B20710 50%, #8B0000 100%);
    --neon-gradient: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
    --surface-gradient: radial-gradient(ellipse at center, rgba(229, 9, 20, 0.08) 0%, #000000 70%);
    
    /* Text shadows for neon effect */
    --text-glow-red: 0 0 10px rgba(229, 9, 20, 0.8), 0 0 20px rgba(229, 9, 20, 0.6), 0 0 30px rgba(229, 9, 20, 0.4);
    --text-glow-blue: 0 0 10px rgba(0, 212, 255, 0.8), 0 0 20px rgba(0, 212, 255, 0.6), 0 0 30px rgba(0, 212, 255, 0.4);
}

.btn-close, #gotop {
	display: none !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--surface-gradient);
    background-color: #000000;
    min-height: 100vh;
    position: relative;
}

/* Subtle scanline effect for retro feel */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9999;
    opacity: 0.1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==============================
   HEADER
   ============================== */
.header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(10, 10, 10, 0.92));
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 9, 20, 0.3);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 9, 20, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.logo:hover {
    color: #fff;
}

.main-nav {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    text-shadow: var(--text-glow-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.header-search {
    flex: 1;
    max-width: 400px;
}

.header-search form {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.header-search input {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.header-search button {
    padding: 12px 18px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.header-search button:hover {
    color: var(--accent);
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.5), 0 0 20px rgba(229, 9, 20, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.6), 0 0 30px rgba(229, 9, 20, 0.4);
    text-shadow: var(--text-glow-red);
}

.mobile-menu-btn {
    display: none;
    padding: 10px;
    color: #fff;
    font-size: 24px;
}

/* ==============================
   CATALOG BAR
   ============================== */
.catalog-bar {
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(229, 9, 20, 0.4);
    padding: 18px 0;
    backdrop-filter: blur(18px);
    box-shadow: inset 0 -1px 0 rgba(229, 9, 20, 0.2), 0 0 30px rgba(229, 9, 20, 0.1);
}

.catalog-scroll {
    display: flex;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.catalog-scroll::-webkit-scrollbar {
    display: none;
}

.seasons-banner {
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 14px 0;
    width: 100%;
    position: relative;
}

.seasons-banner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;
    border-radius: 32px;
    background: linear-gradient(105deg, rgba(255, 30, 86, 0.26), rgba(255, 30, 86, 0.18), rgba(255, 30, 86, 0.3));
    filter: blur(6px);
    opacity: 0.9;
    z-index: 0;
}

.seasons-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    flex: 1 1 220px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(229, 9, 20, 0.7);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 15px rgba(229, 9, 20, 0.4), inset 0 0 10px rgba(229, 9, 20, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    z-index: 1;
    position: relative;
}

.seasons-btn:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    text-shadow: var(--text-glow-red);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(229, 9, 20, 0.6), inset 0 0 15px rgba(229, 9, 20, 0.2);
}

.cat-item {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.cat-item:hover,
.cat-item.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.5), 0 0 20px rgba(229, 9, 20, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* ==============================
   MAIN CONTENT
   ============================== */
.main-content {
    padding: 30px 0 50px;
    min-height: calc(100vh - 200px);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #71717a;
}

.breadcrumbs a {
    color: var(--text-muted);
}

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

/* ==============================
   SECTIONS
   ============================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    letter-spacing: 1px;
}

.sort-dropdown {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ==============================
   SERIES GRID (Cards)
   ============================== */
.series-grid,
#dle-content {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
}

/* Отключаем грид когда внутри страница сериала */
#dle-content:has(.serial-page),#dle-content:has([name="registration"]),#dle-content:has(.actor-page) {
    display: block !important;
}

/* Пагинация на всю ширину под сеткой */
#dle-content > #bottom-nav {
    grid-column: 1 / -1;
    display: flex !important;
    justify-content: center;
    margin-top: 20px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

@media (max-width: 1200px) {
    .series-grid,
    #dle-content,
    .featured-grid,
    .related-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .series-grid,
    #dle-content,
    .featured-grid,
    .related-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .series-grid,
    #dle-content,
    .featured-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

.series-card {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.95), rgba(0, 0, 0, 0.95));
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.series-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 9, 20, 0.2);
    border-color: rgba(229, 9, 20, 0.4);
}

.card-poster,
.series-card .card-poster,
article.series-card .card-poster {
    position: relative;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden;
    display: block;
}

.card-poster img,
.series-card .card-poster img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s;
}

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

.card-rating {
    position: absolute;
    top: 8px;
    left: 8px;
}

.card-rating span {
	padding: 4px 8px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #22c55e;
}

.card-info {
    padding: 12px;
}

.card-title {
    display: -webkit-box;
    line-clamp: 2;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-title:hover {
    color: var(--accent);
}

.card-meta {
    margin-bottom: 5px;
}

.card-episode {
    display: inline-block;
    padding: 2px 8px;
    background: var(--accent-gradient);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.card-genres {
    font-size: 11px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==============================
   SERIAL PAGE (fullstory)
   ============================== */
.serial-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.serial-header {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 35px;
    margin-bottom: 35px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(10, 10, 10, 0.95));
    border-radius: 20px;
    padding: 28px;
    border: 1px solid rgba(229, 9, 20, 0.3);
    box-shadow: 0 35px 55px rgba(0, 0, 0, 0.8), 0 0 30px rgba(229, 9, 20, 0.15);
}

.serial-poster {
    width: 100%;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.serial-poster img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.serial-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.serial-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    letter-spacing: 1px;
}

.serial-title .edit-icon {
    font-size: 14px;
    color: #71717a;
    margin-left: 8px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.serial-title:hover .edit-icon {
    opacity: 1;
}

.serial-ratings {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.rating-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid #2a2a4a;
}

.rating-label {
    font-size: 10px;
    font-weight: 600;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rating-value {
    font-size: 18px;
    font-weight: 700;
    color: #22c55e;
}

.rating-badge.imdb .rating-value {
    color: #f5c518;
}

.rating-badge.kp .rating-value {
    color: #ff6600;
}

.serial-details {
    margin-bottom: 18px;
    flex: 1;
}

.serial-details li {
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
    display: flex;
    line-height: 1.5;
}

.serial-details li:last-child {
    border-bottom: none;
}

.serial-details li span {
    color: var(--text-muted);
    min-width: 85px;
    flex-shrink: 0;
}

.serial-details li a {
    color: #e4e4e7;
}

.serial-details li a:hover {
    color: var(--accent);
}

/* Актёры в списке деталей - убираем стили span */
.serial-details li span span {
    display: inline;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}

/* Актёры в actors-grid - каждый в отдельном элементе */
.actors-grid span {
    display: inline-block;
    margin-right: 0;
}

.serial-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #e4e4e7;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--accent-gradient);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 12px 28px rgba(229, 9, 20, 0.5), 0 0 20px rgba(229, 9, 20, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.action-btn.active {
    background: var(--accent-gradient);
    border-color: var(--accent-strong);
    color: #fff;
}

.action-btn.complaint {
    background: transparent;
    border-color: #3f3f5a;
}

.action-btn.complaint:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* Description */
.serial-description {
    background: linear-gradient(140deg, rgba(0, 0, 0, 0.95), rgba(10, 10, 10, 0.95));
    border: 1px solid rgba(229, 9, 20, 0.2);
    border-radius: 18px;
    padding: 24px 28px;
    margin-bottom: 25px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 9, 20, 0.1);
}

.serial-description h2 {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.serial-description h2::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.description-text {
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 14px;
}

/* Player Section */
.player-section {
    background: linear-gradient(140deg, rgba(0, 0, 0, 0.95), rgba(10, 10, 10, 0.95));
    border: 1px solid rgba(229, 9, 20, 0.2);
    border-radius: 18px;
    padding: 24px 28px;
    margin-bottom: 25px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 9, 20, 0.1);
}

.player-section h2 {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-section h2::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
}

.tab-btn:hover {
    border-color: var(--accent);
    color: #fff;
}

.tab-btn.active {
    background: var(--accent-gradient);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 12px 30px rgba(229, 9, 20, 0.5), 0 0 20px rgba(229, 9, 20, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

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

/* Related & Comments */
.related-section,
.comments-section {
    margin-bottom: 25px;
}

.related-section h2,
.comments-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-section h2::before,
.comments-section h2::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--accent);
    border-radius: 2px;
}

.comments-count {
    font-size: 13px;
    color: #71717a;
    font-weight: 400;
    margin-left: 5px;
}

.comments-content {
    background: linear-gradient(140deg, rgba(0, 0, 0, 0.95), rgba(10, 10, 10, 0.95));
    border: 1px solid rgba(229, 9, 20, 0.2);
    border-radius: 18px;
    padding: 24px 28px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 9, 20, 0.1);
}

/* ==============================
   FOOTER
   ============================== */
.footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(229, 9, 20, 0.3);
    padding: 40px 0;
    backdrop-filter: blur(12px);
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 9, 20, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
	display: flex;
    align-items: center;
    align-items: end;
}

.footer .logo-icon,
.footer .logo-text {
    display: inline-block;
    vertical-align: middle;
}

.footer .logo-icon {
    width: 42px;
    height: 42px;
    margin-right: 8px;
}

.footer .logo-text {
    font-size: 20px;
    font-weight: 700;
}

.footer-text {
    margin: 15px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
}

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

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    
    .header-search {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .header-search {
        display: none;
    }
    
    .auth-btn span {
        display: none;
    }
    
    .serial-page {
        padding: 15px;
    }
    
    .serial-header {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .serial-poster {
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
    }
    
    .serial-title {
        font-size: 22px;
        text-align: center;
    }
    
    .serial-ratings {
        justify-content: center;
    }
    
    .serial-details li {
        flex-direction: column;
        gap: 3px;
    }
    
    .serial-details li span {
        min-width: auto;
    }
    
    .serial-actions {
        justify-content: center;
    }
    
    .serial-description,
    .player-section,
    .comments-content {
        padding: 18px;
    }
    
    .series-grid,
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .section-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .series-grid,
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .card-info {
        padding: 12px;
    }
    
    .card-title {
        font-size: 14px;
    }
}

/* ==============================
   PAGINATION
   ============================== */
.navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
}

.navigation a,
.navigation span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.navigation a:hover {
    border-color: var(--accent);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.navigation span.nav_ext {
    background: transparent;
    border: none;
    min-width: auto;
    padding: 0 5px;
    color: #71717a;
}

.navigation span:not(.nav_ext) {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(229, 9, 20, 0.5), 0 0 20px rgba(229, 9, 20, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* ==============================
   LOGIN POPUP
   ============================== */
.overlay-box {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
}

.login-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000000;
    border: 1px solid rgba(229, 9, 20, 0.3);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 380px;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(229, 9, 20, 0.2);
}

.login-close {
    position: absolute;
    top: 16px;
    right: 16px;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-secondary);
}

.login-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

.login-avatar {
    text-align: center;
    margin-bottom: 24px;
    font-size: 48px;
    color: var(--accent-color);
}

.login-input {
    margin-bottom: 16px;
}

.login-input input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
}

.login-check {
    margin-bottom: 20px;
    font-size: 14px;
}

.login-check label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.login-btn button {
    width: 100%;
    padding: 14px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.login-btm {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.login-btm a {
    color: var(--accent-color);
}

.login-soc-title {
    text-align: center;
    margin: 20px 0 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.login-soc-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.login-soc-btns img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

/* ==============================
   UTILITIES
   ============================== */
.hidden {
    display: none;
}

.fx-row {
    display: flex;
    flex-wrap: wrap;
}

.fx-middle {
    align-items: center;
}

.fx-between {
    justify-content: space-between;
}

.fx-1 {
    flex: 1;
}

/* Lazy load images */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[data-src].loaded {
    opacity: 1;
}

/* ==============================
   FORMS (Registration, Feedback, etc.)
   ============================== */
.form-wrap {
    max-width: 500px;
    margin: 0 auto;
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: 16px;
}

.form-wrap h1 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.form-wrap .full-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.form-wrap .full-text a {
    color: var(--accent-color);
}

.form-item {
    margin-bottom: 16px;
}

.form-item label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-item input[type="text"],
.form-item input[type="password"],
.form-item input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.form-item input:focus {
    border-color: var(--accent-color);
    outline: none;
}

.form-item input[type="button"] {
    margin-top: 8px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 13px;
}

.form-item input[type="button"]:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.form-secur {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.form-secur input[type="text"] {
    flex: 1;
    min-width: 150px;
}

.form-textarea {
    margin-bottom: 16px;
}

.form-textarea label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-textarea textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
}

.form-submit {
    margin-top: 24px;
}

.form-submit button {
    width: 100%;
    padding: 14px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.form-submit button:hover {
    background: var(--accent-hover);
}

#result-registration {
    padding: 10px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 14px;
}

/* Override engine.css form styles */
.form-item {
    padding-left: 0 !important;
    position: relative;
}

.form-item > label {
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0 0 8px 0 !important;
}

.form-item > input[type="text"],
.form-item > input[type="password"],
.form-item > input[type="file"] {
    float: none !important;
    max-width: 100% !important;
    width: 100% !important;
}

.form-item > input[type="button"] {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    height: auto !important;
    line-height: normal !important;
}

/* ==============================
   FORMS - Enhanced
   ============================== */
.form-wrap {
    max-width: 500px;
    margin: 0 auto;
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: 16px;
}

.form-wrap h1 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.form-wrap .full-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.form-wrap > div {
    margin-bottom: 20px;
}

.form-item {
    margin-bottom: 20px;
    padding-left: 0 !important;
}

.form-item > label {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-item input[type="text"],
.form-item input[type="password"],
.form-item input[type="email"],
.form-item input[type="file"],
.form-wrap input[type="text"],
.form-wrap input[type="password"],
.form-wrap input[type="email"] {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-item input:focus,
.form-wrap input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.3);
}

.form-item input[type="button"],
.form-wrap input[type="button"] {
    display: inline-block !important;
    position: relative !important;
    right: auto !important;
    top: auto !important;
    height: auto !important;
    line-height: normal !important;
    margin-top: 10px;
    padding: 12px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 13px;
}

.form-item input[type="button"]:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.form-secur {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.form-textarea {
    margin-bottom: 20px;
}

.form-textarea > label {
    display: block;
    margin-bottom: 8px;
    padding: 0 !important;
    background: transparent !important;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-textarea textarea,
.form-wrap textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-textarea textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.3);
}

.form-submit,
.form-wrap .form-submit {
    margin-top: 24px;
}

.form-submit button,
.form-wrap button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 0;
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.form-submit button:hover {
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.6), 0 0 20px rgba(229, 9, 20, 0.4);
    text-shadow: var(--text-glow-red);
    transform: translateY(-2px);
}

#result-registration {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 14px;
}

#result-registration ul {
    margin: 0;
    padding-left: 20px;
}

.imp > label:after {
    content: "*";
    margin-left: 5px;
    color: var(--accent-color);
}

/* ==============================
   ADDITIONAL INFO SECTIONS
   ============================== */
.info-section {
    margin: 40px 0;
    background: linear-gradient(140deg, rgba(0, 0, 0, 0.95), rgba(10, 10, 10, 0.95));
    border: 1px solid rgba(229, 9, 20, 0.2);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 9, 20, 0.1);
}

.info-section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(229, 9, 20, 0.3);
}

.info-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.info-section-title i {
    color: var(--accent);
    font-size: 24px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.info-section-content {
    color: var(--text-primary);
}

/* Actors Section */
.actors-section {
    margin-top: 30px;
}

.actors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    line-height: 1.8;
}

.actors-grid span {
    display: block;
    width: 100%;
}

/* Actor Card Link - вся карточка кликабельна */
.actor-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
}

.actor-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Actor Card Styles - Stranger Things inspired */
.actor-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.actor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.actor-card-link:hover .actor-card {
    transform: translateY(-5px);
    border-color: rgba(229, 9, 20, 0.4);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(229, 9, 20, 0.2),
        0 0 40px rgba(0, 212, 255, 0.1);
}

.actor-card-link:hover .actor-card::before {
    opacity: 1;
}

.actor-card-photo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 0 15px rgba(229, 9, 20, 0.3),
        0 0 30px rgba(0, 212, 255, 0.2);
    border: 2px solid transparent;
    background: var(--bg-panel);
}

.actor-card-photo::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--neon-blue) 100%);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.5;
}

.actor-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.1) brightness(0.95) saturate(1.2);
    transition: filter 0.3s ease;
}

.actor-card-link:hover .actor-card-photo img {
    filter: contrast(1.15) brightness(1.05) saturate(1.3);
}

.actor-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.actor-card-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    transition: all 0.2s;
}

.actor-card-link:hover .actor-card-name {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(229, 9, 20, 0.6);
}

.actor-card-bio {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fallback for old style (without card) - актёры без карточек */
.actors-grid span:not(:has(.actor-card-link)) a {
    display: inline-block;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.actors-grid span:not(:has(.actor-card-link)) a:hover {
    background: rgba(229, 9, 20, 0.25);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4), 0 0 10px rgba(229, 9, 20, 0.2);
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* Series Info Section */
.series-info-section {
    margin-top: 30px;
}

.series-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(229, 9, 20, 0.4);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.2);
}

.info-item-full {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.info-label i {
    color: var(--accent);
    font-size: 14px;
    text-shadow: 0 0 8px var(--accent-glow);
}

.info-value {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
}

.info-value a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s;
}

.info-value a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(229, 9, 20, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .info-section {
        padding: 20px;
        margin: 30px 0;
    }
    
    .info-section-title {
        font-size: 20px;
    }
    
    .actors-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .series-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .actors-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .actors-grid span {
        width: 100%;
    }
}

/* ==============================
   ACTOR PAGE STYLES
   Stranger Things inspired
   ============================== */

.actor-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.actor-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.actor-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    box-shadow: 0 0 20px var(--accent-glow);
}

.actor-photo {
    flex-shrink: 0;
    width: 280px;
    height: 350px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(229, 9, 20, 0.3),
        0 0 60px rgba(0, 212, 255, 0.2),
        0 10px 40px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-panel);
    border: 2px solid transparent;
}

.actor-photo::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--neon-blue) 50%, var(--accent) 100%);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.6;
    animation: borderGlow 3s ease-in-out infinite;
}

.actor-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

.actor-photo:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 0 40px rgba(229, 9, 20, 0.5),
        0 0 80px rgba(0, 212, 255, 0.3),
        0 15px 50px rgba(0, 0, 0, 0.7);
}

.actor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: 
        contrast(1.1) 
        brightness(0.95) 
        saturate(1.2)
        sepia(0.1);
    transition: filter 0.4s ease;
    position: relative;
    z-index: 0;
}

.actor-photo:hover .actor-image {
    filter: 
        contrast(1.15) 
        brightness(1.05) 
        saturate(1.3)
        sepia(0.15);
}

.actor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.actor-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-shadow: var(--text-glow-red);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.actor-alt-name {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 400;
    font-style: italic;
    margin: 0;
    text-transform: lowercase;
}

/* Actor Bio Section */
.actor-bio-section {
    margin-bottom: 40px;
}

.actor-bio {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.actor-bio-image {
    flex-shrink: 0;
    width: 200px;
    height: 250px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(229, 9, 20, 0.25),
        0 0 40px rgba(0, 212, 255, 0.15),
        0 8px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.actor-bio-image::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--neon-blue) 100%);
    border-radius: 10px;
    z-index: -1;
    opacity: 0.4;
}

.actor-bio-image:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 0 30px rgba(229, 9, 20, 0.4),
        0 0 60px rgba(0, 212, 255, 0.25),
        0 12px 40px rgba(0, 0, 0, 0.6);
}

.actor-bio-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: 
        contrast(1.05) 
        brightness(0.98) 
        saturate(1.15);
    transition: filter 0.3s ease;
}

.actor-bio-image:hover .actor-bio-photo {
    filter: 
        contrast(1.1) 
        brightness(1.02) 
        saturate(1.2);
}

.actor-biography-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: justify;
}

.actor-biography-text p {
    margin-bottom: 15px;
}

/* Animation for border glow */
@keyframes borderGlow {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.9;
    }
}

/* Responsive for actor page */
@media (max-width: 768px) {
    .actor-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px;
    }
    
    .actor-photo {
        width: 220px;
        height: 280px;
    }
    
    .actor-title {
        font-size: 32px;
    }
    
    .actor-bio {
        flex-direction: column;
    }
    
    .actor-bio-image {
        width: 100%;
        max-width: 250px;
        height: auto;
        aspect-ratio: 4/5;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .actor-photo {
        width: 180px;
        height: 230px;
    }
    
    .actor-title {
        font-size: 28px;
    }
    
    .actor-bio-image {
        max-width: 200px;
    }
    
    .actors-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .actor-card {
        padding: 12px;
    }
    
    .actor-card-photo {
        width: 60px;
        height: 60px;
    }
    
    .actor-card-name {
        font-size: 14px;
    }
    
    .actor-card-bio {
        font-size: 12px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}
