/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background-color: #0b0b0b;
    color: #e8e6e3;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 5vw, 3rem); margin-bottom: 0.5rem; }
.section-label {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em;
    color: #888; margin-bottom: 0.5rem; font-weight: 600;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes spin { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
@keyframes scrollDown { 0%,100% { opacity: 1; transform: translateX(-50%) translateY(0); } 50% { opacity: 0; transform: translateX(-50%) translateY(16px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(227, 27, 35, 0.6); } 50% { box-shadow: 0 0 0 12px rgba(227, 27, 35, 0); } }
@keyframes playPulse {
    0%, 100% { box-shadow: 0 12px 40px rgba(227, 27, 35, 0.55), 0 0 0 0 rgba(227, 27, 35, 0.55); }
    50%      { box-shadow: 0 12px 40px rgba(227, 27, 35, 0.55), 0 0 0 20px rgba(227, 27, 35, 0); }
}

.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ===== LOADER ===== */
.loader-spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(255,255,255,0.05);
    border-top: 3px solid #e31b23;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
.loader-placeholder {
    grid-column: 1 / -1; text-align: center; padding: 40px 0; color: #666;
}

/* ===== HEADER ===== */
header {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 16px 0; z-index: 1000;
    background: rgba(11, 11, 11, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s ease;
}
header.scrolled {
    background: rgba(11, 11, 11, 0.95);
    padding: 10px 0;
    border-bottom-color: rgba(227, 27, 35, 0.2);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}
nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.logo img { height: 32px; width: auto; display: block; transition: transform 0.3s ease; }
.logo img:hover { transform: scale(1.05); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; z-index: 1001; }
.nav-toggle span { display: block; width: 28px; height: 2.5px; background: #fff; border-radius: 3px; transition: all 0.3s ease; transform-origin: center; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-links {
    display: flex; gap: 24px; list-style: none;
    font-size: 0.85rem; font-weight: 400; flex-wrap: wrap; transition: all 0.3s ease;
}
.nav-links a {
    color: #ccc; text-decoration: none; transition: all 0.3s ease;
    letter-spacing: 0.02em; position: relative; cursor: pointer;
    font-size: 0.85rem; white-space: nowrap;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: linear-gradient(90deg, #e31b23, #ff4757); transition: width 0.3s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: #fff; }
.nav-links a.active::after { width: 100%; }
.nav-cta-btn {
    background: linear-gradient(135deg, #e31b23, #c01018); color: #fff !important;
    padding: 8px 20px; border-radius: 40px; font-weight: 600; font-size: 0.8rem;
    text-decoration: none; transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1); letter-spacing: 0.02em; white-space: nowrap;
}
.nav-cta-btn:hover { transform: scale(1.05); box-shadow: 0 0 25px rgba(227, 27, 35, 0.5); color: #fff !important; }
.nav-cta-btn::after { display: none !important; }

/* ===== HERO ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; padding-top: 80px; background: #0b0b0b;
    animation: fadeIn 1.2s ease; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 65%; height: 100%;
    background: url('/static/main-banner-als-1.png') center / cover no-repeat;
    z-index: 1; animation: fadeIn 1.5s ease 0.3s both;
}
.hero::after {
    content: ''; position: absolute; top: 0; left: 0;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, #0b0b0b 0%, #0b0b0b 25%, rgba(11, 11, 11, 0.7) 45%, rgba(11, 11, 11, 0.3) 65%, transparent 100%);
    z-index: 1; pointer-events: none;
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero .hero-content { max-width: 650px; }
.hero h1 {
    font-size: clamp(2.4rem, 8vw, 5.2rem); font-weight: 600;
    line-height: 1.08; margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s both;
}
.hero h1 span { display: block; font-weight: 300; color: #d0d0d0; }
.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem); max-width: 540px;
    color: #d0d0d0; font-weight: 300; line-height: 1.7;
    animation: fadeInUp 1s ease 0.4s both;
}
.hero-buttons {
    display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px;
    animation: fadeInUp 1s ease 0.6s both;
}
.hero-buttons .btn-primary, .hero-buttons .btn-secondary {
    min-height: 48px; padding: 12px 28px; font-size: 0.9rem; flex: 0 1 auto;
}
.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: rgba(255, 255, 255, 0.4); font-size: 0.6rem;
    letter-spacing: 0.1em; text-transform: uppercase; animation: float 2s ease-in-out infinite;
}
.scroll-indicator .mouse {
    width: 22px; height: 34px; border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px; position: relative;
}
.scroll-indicator .mouse::after {
    content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 3px; height: 10px; background: #e31b23; border-radius: 3px;
    animation: scrollDown 2s ease-in-out infinite;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e31b23, #c01018);
    color: #fff; padding: 14px 32px; border-radius: 60px;
    font-weight: 600; font-size: 0.95rem; text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none; cursor: pointer; letter-spacing: 0.02em;
    box-shadow: 0 4px 30px rgba(227, 27, 35, 0.35);
    min-height: 52px; line-height: 1; font-family: inherit;
    position: relative; overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, #ff4757, #e31b23);
    opacity: 0; transition: opacity 0.4s ease;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: scale(0.97); box-shadow: 0 8px 40px rgba(227, 27, 35, 0.5); }
.btn-primary span { position: relative; z-index: 1; }

.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.06); color: #fff;
    padding: 14px 32px; border-radius: 60px;
    font-weight: 500; font-size: 0.95rem; text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15); cursor: pointer;
    letter-spacing: 0.02em; min-height: 52px; line-height: 1;
    font-family: inherit; backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(0.97); box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.btn-telegram {
    display: inline-flex; align-items: center; justify-content: center;
    background: #0088cc; color: #fff; padding: 12px 28px;
    border-radius: 60px; font-weight: 600; font-size: 0.9rem;
    text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none; cursor: pointer; letter-spacing: 0.02em;
    box-shadow: 0 4px 30px rgba(0, 136, 204, 0.35);
    min-height: 46px; line-height: 1; font-family: inherit;
    position: relative; overflow: hidden;
}
.btn-telegram::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, #00a3e0, #006699);
    opacity: 0; transition: opacity 0.4s ease;
}
.btn-telegram:hover::before { opacity: 1; }
.btn-telegram:hover { transform: scale(0.97); box-shadow: 0 8px 40px rgba(0, 136, 204, 0.5); }
.btn-telegram span { position: relative; z-index: 1; }

/* ===== SECTIONS ===== */
section { padding: 80px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); position: relative; overflow: hidden; }
section:last-of-type { border-bottom: none; }

/* ===== PARTNERS ===== */
.partners-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px 30px; margin-top: 32px; align-items: stretch; justify-items: center;
}
.partner-item {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100px; padding: 16px;
    background: rgba(255, 255, 255, 0.03); border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); cursor: default;
}
.partner-item:hover {
    transform: translateY(-4px) scale(1.03);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(227, 27, 35, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.partner-item img {
    max-width: 80%; max-height: 60px; width: auto; height: auto;
    display: block; transition: all 0.4s ease; object-fit: contain; opacity: 0.9;
}
.partner-item:hover img { transform: scale(1.05); opacity: 1; }

/* ===== WORKS SLIDER ===== */
.works-slider-wrapper {
    position: relative; margin-top: 32px; overflow: hidden;
    border-radius: 16px; padding: 0 0 10px 0;
}
.works-slider-track {
    display: flex; gap: 16px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.work-card {
    flex: 0 0 calc(20% - 13px); min-width: 0;
    position: relative; border-radius: 16px; overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer; aspect-ratio: 2 / 3;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
}
.work-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(227, 27, 35, 0.1);
    border-color: rgba(227, 27, 35, 0.3);
}
.work-card a { display: block; text-decoration: none; color: inherit; width: 100%; height: 100%; }

.work-card-poster {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #1a1a1a;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
}
.work-card:hover .work-card-poster { transform: scale(1.05); }

.work-card > a > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.work-card:hover > a > img { transform: scale(1.05); }

.work-card-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 16px 12px 12px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}
.work-card:hover .work-card-overlay { opacity: 1; }
.work-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.work-card-year {
    font-size: 0.7rem;
    color: #bbb;
    margin-top: 2px;
}

.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1); color: #fff;
    width: 40px; height: 40px; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer; transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
}
.works-slider-wrapper:hover .slider-btn { opacity: 1; pointer-events: auto; }
.slider-btn:hover {
    background: rgba(227, 27, 35, 0.6);
    border-color: rgba(227, 27, 35, 0.5);
    transform: translateY(-50%) scale(1.05);
}
.slider-btn-prev { left: 8px; }
.slider-btn-next { right: 8px; }

.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.slider-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.2); border: none;
    cursor: pointer; transition: all 0.3s ease; padding: 0;
}
.slider-dot.active { background: #e31b23; width: 24px; border-radius: 6px; }
.slider-dot:hover { background: rgba(255, 255, 255, 0.4); }
.slider-dot.active:hover { background: #e31b23; }

/* ===== NEWS ===== */
.news-subtitle { max-width: 600px; color: #999; font-weight: 300; font-size: 1rem; margin-top: 4px; margin-bottom: 28px; line-height: 1.6; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; min-height: 250px; }
.news-card {
    background: rgba(255, 255, 255, 0.03); border-radius: 16px;
    padding: 20px; border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.news-card:hover {
    transform: translateY(-4px); background: rgba(255, 255, 255, 0.06);
    border-color: rgba(227, 27, 35, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.news-cover {
    width: calc(100% + 40px); margin: -20px -20px 12px;
    height: 180px; object-fit: cover;
    border-radius: 16px 16px 0 0; display: block;
}
.news-date { font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.news-card h3 { font-size: 1rem; font-weight: 500; color: #fff; margin-bottom: 6px; line-height: 1.3; }
.news-card p {
    font-size: 0.85rem; color: #999; font-weight: 300; line-height: 1.5; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .news-tag {
    display: inline-block; font-size: 0.6rem; text-transform: uppercase;
    letter-spacing: 0.08em; color: #e31b23; font-weight: 600; margin-top: 10px;
    background: rgba(227, 27, 35, 0.1); padding: 3px 12px; border-radius: 20px;
    align-self: flex-start;
}
.news-empty { grid-column: 1 / -1; text-align: center; padding: 40px 20px; color: #666; }

/* ===== ABOUT ===== */
#about .about-text { max-width: 720px; color: #bbb; font-weight: 300; margin-top: 6px; margin-bottom: 28px; font-size: 1rem; }
.slider-wrapper { margin-top: 8px; overflow: hidden; border-radius: 18px; position: relative; }
.slider-track { display: flex; gap: 10px; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.slider-track img {
    width: 100%; max-width: 320px; height: 220px; object-fit: cover;
    border-radius: 14px; flex-shrink: 0; background: #1a1a1a; transition: transform 0.4s ease;
}
.slider-track img:hover { transform: scale(1.02); }
.slider-controls { display: flex; gap: 12px; margin-top: 16px; justify-content: flex-start; }
.slider-controls button {
    background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff; width: 38px; height: 38px; border-radius: 50%;
    font-size: 1rem; cursor: pointer; transition: all 0.3s ease;
}
.slider-controls button:hover { background: rgba(227, 27, 35, 0.3); border-color: rgba(227, 27, 35, 0.5); transform: scale(1.05); }

/* ===== VIDEO ===== */
.video-wrapper {
    margin-top: 20px; border-radius: 18px; overflow: hidden;
    background: #111; aspect-ratio: 16 / 9;
    display: flex; align-items: center; justify-content: center;
    position: relative; cursor: pointer;
}
.video-wrapper video {
    width: 100%; height: 100%; object-fit: cover; display: block;
    background: #000;
}

.video-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 96px; height: 96px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: linear-gradient(135deg, #ff2a34 0%, #e31b23 50%, #c01018 100%);
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow:
        0 12px 40px rgba(227, 27, 35, 0.55),
        0 0 0 0 rgba(227, 27, 35, 0.55);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease,
                opacity 0.3s ease;
    animation: playPulse 2.2s ease-in-out infinite;
    z-index: 3;
    font-family: inherit;
}
.video-play-btn .video-play-icon {
    display: flex; align-items: center; justify-content: center;
    margin-left: 6px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}
.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow:
        0 16px 50px rgba(227, 27, 35, 0.7),
        0 0 0 18px rgba(227, 27, 35, 0.08);
}
.video-play-btn:active {
    transform: translate(-50%, -50%) scale(0.96);
}
.video-play-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.7);
    animation: none;
}

/* ===== SERVICES ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 32px; }
.service-card {
    background: rgba(255, 255, 255, 0.03); border-radius: 16px;
    padding: 32px 20px 28px; border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center; position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #e31b23, #ff4757, #e31b23);
    background-size: 200% 100%; opacity: 0; transition: opacity 0.4s ease;
}
.service-card:hover::before { opacity: 1; animation: shimmer 2s linear infinite; }
.service-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(227, 27, 35, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.service-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; color: #fff; }
.service-card p { color: #aaa; font-weight: 300; font-size: 0.9rem; }

/* ===== ACTORS ===== */
.actors-subtitle { max-width: 600px; color: #999; font-weight: 300; font-size: 1rem; margin-top: 4px; margin-bottom: 28px; line-height: 1.6; }
.actors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.actors-full-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.actor-card {
    background: rgba(255, 255, 255, 0.03); border-radius: 16px; padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    position: relative; overflow: hidden; cursor: pointer; text-decoration: none; color: inherit;
}
.actor-card:hover {
    transform: translateY(-4px); background: rgba(255, 255, 255, 0.06);
    border-color: rgba(227, 27, 35, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.actor-card .avatar {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #1a1a1a; overflow: hidden; border-radius: 16px;
}
.actor-card .avatar img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    border-radius: 16px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.actor-card:hover .avatar img { transform: scale(1.05); }
.actor-card .avatar::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 65%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
    pointer-events: none; border-radius: 0 0 16px 16px;
}
.actor-card .actor-info {
    position: relative; z-index: 2; padding: 14px 14px 16px; width: 100%;
    display: flex; flex-direction: column; align-items: center;
}
.actor-card .actor-info h4 {
    font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); line-height: 1.3;
}
.actor-card .actor-role {
    font-size: 0.7rem; color: #aaa; font-weight: 300; margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.actor-audio {
    width: 100%; display: flex; align-items: center; gap: 6px;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px);
    border-radius: 40px; padding: 3px 8px 3px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08); transition: all 0.3s ease;
}
.actor-audio:hover { background: rgba(0, 0, 0, 0.85); border-color: rgba(227, 27, 35, 0.2); }
.audio-play-btn {
    background: none; border: none; color: #fff; font-size: 0.9rem;
    cursor: pointer; padding: 4px; transition: all 0.3s ease;
    flex-shrink: 0; width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(227, 27, 35, 0.25); font-family: inherit;
}
.audio-play-btn:hover { background: rgba(227, 27, 35, 0.5); transform: scale(1.05); }
.audio-play-btn.playing { background: rgba(227, 27, 35, 0.5); }
.audio-progress-wrap { flex: 1; display: flex; align-items: center; gap: 4px; min-width: 0; }
.audio-progress {
    flex: 1; height: 3px; background: rgba(255, 255, 255, 0.15);
    border-radius: 4px; cursor: pointer; position: relative; min-width: 20px; transition: height 0.2s ease;
}
.audio-progress:hover { height: 5px; }
.audio-progress-fill {
    height: 100%; background: linear-gradient(90deg, #e31b23, #ff4757);
    border-radius: 4px; width: 0%; transition: width 0.1s linear; position: relative;
}
.audio-time {
    font-size: 0.55rem; color: #aaa; font-variant-numeric: tabular-nums;
    flex-shrink: 0; min-width: 24px; text-align: center;
}

/* ===== ACTOR VOICE PREVIEW ===== */
.actor-card-wrap {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.actor-card-wrap .actor-card {
    aspect-ratio: 1 / 1;
    flex: none;
}
.actor-card-wrap .actor-audio {
    margin-top: 10px;
    padding: 6px 10px 6px 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    cursor: default;
}
.actor-card-wrap .actor-audio:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(227, 27, 35, 0.25);
}
.actor-card-wrap .audio-play-btn {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #e31b23, #c01018);
    box-shadow: 0 2px 10px rgba(227, 27, 35, 0.3);
    font-size: 0.65rem;
}
.actor-card-wrap .audio-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(227, 27, 35, 0.5);
    background: linear-gradient(135deg, #e31b23, #c01018);
}
.actor-card-wrap .audio-play-btn.playing {
    background: linear-gradient(135deg, #ff4757, #e31b23);
    animation: pulse 1.6s ease-in-out infinite;
}
.actor-card-wrap .audio-play-btn.paused {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}
.actor-card-wrap .audio-play-btn.loading {
    background: rgba(255, 255, 255, 0.12);
    cursor: wait;
    box-shadow: none;
}
.actor-card-wrap .audio-play-icon {
    font-size: 0.65rem;
    line-height: 1;
    letter-spacing: 0.5px;
    display: block;
}
.actor-card-wrap .audio-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    min-width: 24px;
}
.actor-card-wrap .audio-progress:hover { height: 6px; }
.actor-card-wrap .audio-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e31b23, #ff4757);
    border-radius: 4px;
}
.actor-card-wrap .audio-time {
    font-size: 0.65rem;
    color: #999;
    min-width: 30px;
    text-align: right;
}

.actor-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(26, 29, 36, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(10px);
}
.actor-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== CONTACTS ===== */
.contacts-simple {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 28px;
    max-width: 780px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(227, 27, 35, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.contact-card-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(227, 27, 35, 0.1);
    border-radius: 12px;
    transition: background 0.3s ease;
}

.contact-card:hover .contact-card-icon {
    background: rgba(227, 27, 35, 0.2);
}

.contact-card-body {
    min-width: 0;
    flex: 1;
}

.contact-card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-card-value {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contacts-note {
    margin-top: 24px;
    color: #888;
    font-size: 0.9rem;
    font-weight: 300;
}

@media (max-width: 600px) {
    .contacts-simple {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .contact-card {
        padding: 18px;
    }
    .contact-card-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    .contact-card-value {
        font-size: 0.9rem;
    }
}

/* ===== FOOTER ===== */
footer { padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, 0.04); text-align: center; font-size: 0.8rem; color: #555; }

/* ===== DETAIL PAGES ===== */
.movie-detail-grid { display: grid; grid-template-columns: 320px 1fr; gap: 48px; margin-top: 20px; }
.movie-detail-left {
    position: sticky; top: 100px;
    display: flex; flex-direction: column; gap: 14px;
}
.movie-detail-poster {
    aspect-ratio: 2/3; border-radius: 16px; overflow: hidden;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
.movie-detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.movie-detail-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; margin-bottom: 16px; color: #fff; line-height: 1.1; }
.movie-detail-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; font-size: 0.9rem; color: #999; }
.movie-detail-meta b { color: #e8e6e3; font-weight: 600; }
.movie-detail-genres { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.movie-genre {
    font-size: 0.7rem; padding: 4px 12px; background: rgba(227, 27, 35, 0.1);
    color: #e31b23; border-radius: 20px; font-weight: 600; letter-spacing: 0.04em;
}
.movie-detail-trailer {
    display: flex;
}
.movie-detail-trailer .btn-secondary {
    width: 100%;
    min-height: 48px;
    padding: 12px 22px;
    font-size: 0.95rem;
    justify-content: center;
}
.movie-detail-watch {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    margin-top: 4px;
}
.movie-detail-description { color: #bbb; font-size: 1rem; margin-bottom: 32px; line-height: 1.7; font-weight: 300; }
.movie-section-title {
    font-size: 1.3rem; font-weight: 600; margin: 40px 0 20px;
    padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.06); color: #fff;
}
.work-notes { font-size: 0.95rem; line-height: 1.7; color: #bbb; font-weight: 300; }
.work-notes img, .work-notes iframe, .work-notes video { max-width: 100%; border-radius: 14px; margin: 16px 0; }
.work-notes iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: none; }
.work-notes h3 { font-size: 1.1rem; margin: 24px 0 10px; color: #fff; }
.work-notes a { color: #e31b23; }

/* Actor detail */
.actor-profile { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; margin-top: 20px; }
.actor-profile-photo {
    width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center; font-size: 80px; color: #666;
}
.actor-profile-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.actor-profile-name { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; margin-bottom: 20px; color: #fff; }
.actor-profile-bio { color: #bbb; font-size: 1rem; line-height: 1.7; margin-bottom: 32px; font-weight: 300; }
.voice-list { display: flex; flex-direction: column; gap: 14px; }
.voice-item {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 16px;
}
.voice-item-head { margin-bottom: 12px; }
.voice-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; color: #fff; }
.voice-desc { font-size: 0.85rem; color: #999; }

.voice-player {
    display: flex;
    align-items: center;
    gap: 12px;
}
.voice-play-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #e31b23, #c01018);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    font-family: inherit;
    box-shadow: 0 4px 18px rgba(227, 27, 35, 0.35);
}
.voice-play-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 24px rgba(227, 27, 35, 0.5);
}
.voice-play-btn.playing {
    background: linear-gradient(135deg, #ff4757, #e31b23);
    animation: pulse 1.6s ease-in-out infinite;
}
.voice-play-btn.paused {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}
.voice-play-btn.loading {
    background: rgba(255, 255, 255, 0.1);
    cursor: wait;
    box-shadow: none;
}
.voice-play-icon {
    font-size: 0.9rem;
    line-height: 1;
    display: block;
}
.voice-progress {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: height 0.15s ease;
}
.voice-progress:hover { height: 8px; }
.voice-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #e31b23, #ff4757);
    border-radius: 6px;
    transition: width 0.1s linear;
}
.voice-time {
    font-size: 0.8rem;
    color: #999;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    min-width: 40px;
    text-align: right;
}

.films-list { display: grid; gap: 12px; }
.film-row {
    display: grid; grid-template-columns: 60px 1fr auto; gap: 16px; align-items: center;
    padding: 12px 16px; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06); border-radius: 14px;
    transition: border-color 0.2s; text-decoration: none; color: inherit;
}
.film-row:hover { border-color: rgba(227,27,35,0.3); }
.film-row-poster { width: 60px; height: 80px; background: #232935; border-radius: 8px; overflow: hidden; }
.film-row-poster img { width: 100%; height: 100%; object-fit: cover; }
.film-row-title { font-weight: 600; font-size: 0.95rem; color: #fff; }
.film-row-sub { font-size: 0.8rem; color: #999; }
.film-row-year { font-size: 0.85rem; color: #999; font-weight: 600; }

/* ===== WORKS GRID PAGE ===== */
.works-grid-page { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.works-grid-page .work-card { flex: none; }

/* ===== PORTFOLIO FILTERS ===== */
.portfolio-filters {
    margin: 24px 0 8px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}
.portfolio-search { margin-bottom: 14px; }
.portfolio-search input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0f1115;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.portfolio-search input:focus { border-color: rgba(227, 27, 35, 0.5); }

.portfolio-filter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 10px;
    align-items: center;
}
.portfolio-filter-row select {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0f1115;
    color: #e8e6e3;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.portfolio-filter-row select:focus { border-color: rgba(227, 27, 35, 0.5); }
.portfolio-filter-row select option { background: #1a1d24; color: #e8e6e3; }

.filter-reset-btn {
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #ccc;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    white-space: nowrap;
}
.filter-reset-btn:hover {
    background: rgba(227, 27, 35, 0.15);
    border-color: rgba(227, 27, 35, 0.4);
    color: #fff;
}

.portfolio-results-count {
    margin-top: 12px;
    font-size: 0.8rem;
    color: #888;
}

/* ===== NEWS DETAIL ===== */
.news-detail { margin-top: 20px; }
.news-detail .work-notes { font-size: 1rem; }

.news-detail-body {
    font-size: 1rem;
    line-height: 1.75;
    color: #bbb;
}
.news-detail-body img,
.news-detail-body iframe,
.news-detail-body video {
    max-width: 100%;
    border-radius: 14px;
    margin: 16px 0;
}
.news-detail-body iframe {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    border: none;
}
.news-detail-body h1,
.news-detail-body h2,
.news-detail-body h3 {
    color: #fff;
    margin: 24px 0 10px;
}
.news-detail-body a { color: #e31b23; }
.news-detail-body blockquote {
    border-left: 3px solid #e31b23;
    padding: 8px 16px;
    background: rgba(227,27,35,0.06);
    border-radius: 8px;
    margin: 12px 0;
}
.news-detail-body ul,
.news-detail-body ol {
    margin: 12px 0 12px 24px;
}
.news-detail-body p { margin-bottom: 12px; }

/* ===== FORM MESSAGES ===== */
.form-message {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

/* ===== MUTED ===== */
.muted { color: #888; }

/* ===== TRAILER PLAYER ===== */
.trailer-player {
    margin-top: 12px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.trailer-player video,
.trailer-player iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
    background: #000;
}

/* ===== WATCH POPOVER ===== */
.watch-wrap { position: relative; display: inline-block; }
.watch-btn { position: relative; }

.watch-popover {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    background: #1a1d24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    z-index: 100;
    width: max-content;
    max-width: min(92vw, 900px);
    animation: watchFadeIn 0.15s ease;
}
.watch-popover[hidden] { display: none; }

.watch-popover-arrow {
    position: absolute;
    bottom: -6px;
    left: 24px;
    width: 12px; height: 12px;
    background: #1a1d24;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

/* Сетка: до 4 в ряд, дальше переносится на новые строки */
.watch-popover-list {
    display: grid;
    grid-template-columns: repeat(4, 130px);
    gap: 10px;
    align-items: center;
}

.platform-link { display: block; text-decoration: none; transition: transform 0.2s ease; }
.platform-link:hover { transform: scale(1.06); }

.platform-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 56px;
    padding: 8px 12px;
    border-radius: 12px;
    overflow: hidden;
    background: #0f1115;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.platform-link:hover .platform-logo {
    border-color: rgba(227, 27, 35, 0.4);
    background: #14171d;
}

.platform-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.platform-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #5b8cff;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    border-radius: 8px;
}

/* Адаптив: на узких экранах — 3, потом 2 колонки */
@media (max-width: 720px) {
    .watch-popover-list {
        grid-template-columns: repeat(3, 110px);
    }
    .platform-logo {
        width: 110px;
        height: 50px;
    }
}
@media (max-width: 480px) {
    .watch-popover-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .platform-logo {
        width: 100%;
        height: 50px;
    }
    .watch-popover {
        max-width: calc(100vw - 24px);
    }
}

/* ===== WATCH NOTE ===== */
.watch-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.35;
    color: #ff4757;
    background: rgba(255, 71, 87, 0.08);
    border: 1px solid rgba(255, 71, 87, 0.25);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 10px;
    max-width: 280px;
}
.watch-note-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #ff4757;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
    margin-top: 1px;
}

.back-link { color: #e31b23; }
.back-link:hover { color: #ff4757; }

/* ===== CAST GRID (карточки актёров в карточке фильма) ===== */

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

.cast-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: transparent;
    border: none;
    padding: 0;
    transition: transform .25s ease;
}
.cast-card:hover {
    transform: translateY(-3px);
}

/* Общий контейнер: без radius и без overflow — иначе скруглит внутренние углы */
.cast-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: 0 6px 22px rgba(0,0,0,.35);
    transition: box-shadow .25s ease;
}
.cast-card:hover .cast-photos {
    box-shadow: 0 14px 34px rgba(0,0,0,.5);
}

/* Колонки */
.cast-photo-col {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

/* Внешние ЛЕВЫЕ углы — только у первой колонки */
.cast-photo-col:first-child {
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
}
.cast-photo-col:first-child .cast-photo,
.cast-photo-col:first-child .cast-photo img,
.cast-photo-col:first-child .cast-placeholder {
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
}

/* Внешние ПРАВЫЕ углы — только у последней колонки */
.cast-photo-col:last-child {
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
}
.cast-photo-col:last-child .cast-photo,
.cast-photo-col:last-child .cast-photo img,
.cast-photo-col:last-child .cast-placeholder {
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
}

/* Внутренние углы (без :first-child / :last-child) — прямые */
.cast-photo {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #161a22;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.cast-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
}

.cast-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 28px;
    color: #555;
    background: linear-gradient(135deg, #232935, #161a22);
}

/* ===== ПЛАШКИ С ИМЕНАМИ ===== */
.cast-actor-name,
.cast-char-name {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    max-width: calc(100% - 16px);
    width: max-content;
    margin: 0;
    padding: 3px 8px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    line-height: 1.25;
    letter-spacing: 0.01em;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    border-radius: 6px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-shadow: 0 1px 2px rgba(0,0,0,0.9);
    pointer-events: none;
}

.cast-actor-name {
    background: rgba(20, 24, 32, 0.7);
    border: 1px solid rgba(91, 140, 255, 0.3);
    box-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.cast-card:hover .cast-actor-name {
    background: rgba(28, 36, 52, 0.8);
    border-color: rgba(91, 140, 255, 0.55);
}

.cast-char-name {
    background: rgba(38, 12, 16, 0.7);
    border: 1px solid rgba(227, 27, 35, 0.4);
    box-shadow: 0 1px 6px rgba(227, 27, 35, 0.15);
}
.cast-card:hover .cast-char-name {
    background: rgba(58, 16, 22, 0.8);
    border-color: rgba(227, 27, 35, 0.65);
    box-shadow: 0 1px 10px rgba(227, 27, 35, 0.35);
}

.cast-char-name-empty {
    display: none;
}

/* Мобильный */
@media (max-width: 480px) {
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }

    .cast-photo-col:first-child,
    .cast-photo-col:first-child .cast-photo,
    .cast-photo-col:first-child .cast-photo img,
    .cast-photo-col:first-child .cast-placeholder {
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
    }
    .cast-photo-col:last-child,
    .cast-photo-col:last-child .cast-photo,
    .cast-photo-col:last-child .cast-photo img,
    .cast-photo-col:last-child .cast-placeholder {
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    .cast-actor-name,
    .cast-char-name {
        bottom: 8px;
        padding: 2px 6px;
        font-size: 0.6rem;
        border-radius: 5px;
        max-width: calc(100% - 10px);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(20, 24, 32, 0.9);
        white-space: normal;
    }
    .cast-char-name {
        background: rgba(38, 12, 16, 0.9);
    }
}

/* ===== ACTOR SOCIALS ===== */
.actor-socials {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.actor-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a5adbb;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.actor-social-btn svg,
.actor-social-btn img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.actor-social-btn:hover {
    transform: translateY(-2px);
    color: #fff;
    border-color: transparent;
}

.actor-social-btn:hover svg,
.actor-social-btn:hover img {
    transform: scale(1.1);
}

.actor-social-telegram:hover {
    background: linear-gradient(135deg, #2aabee, #229ed9);
    box-shadow: 0 6px 20px rgba(42, 171, 238, 0.45);
}
.actor-social-vk:hover {
    background: linear-gradient(135deg, #4c75a3, #2787f5);
    box-shadow: 0 6px 20px rgba(39, 135, 245, 0.45);
}
.actor-social-youtube:hover {
    background: linear-gradient(135deg, #ff0033, #c4302b);
    box-shadow: 0 6px 20px rgba(255, 0, 51, 0.45);
}
.actor-social-yandex:hover {
    background: linear-gradient(135deg, #ffcc00, #ff0000);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.45);
}
.actor-social-kinopoisk:hover {
    background: linear-gradient(135deg, #ff6600, #f60);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.45);
}

@media (max-width: 600px) {
    .actor-social-btn { width: 38px; height: 38px; border-radius: 10px; }
    .actor-social-btn svg,
    .actor-social-btn img { width: 18px; height: 18px; }
    .actor-socials { gap: 8px; margin-top: 12px; }
}

/* ===== VIDEO PAIR (трейлер + второе видео) ===== */
.video-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
    align-items: start;
}

.video-pair-item {
    min-width: 0;
}

.video-pair-label {
    font-size: 0.85rem;
    color: #a5adbb;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.video-pair-label-empty {
    visibility: hidden;
}

.video-pair-solo {
    grid-template-columns: 1fr 1fr;
    justify-content: start;
}

.video-pair-solo .video-pair-item {
    grid-column: 1;
    max-width: 100%;
}

.video-pair .trailer-player {
    margin-top: 0;
    width: 100%;
}

.video-pair .trailer-player video,
.video-pair .trailer-player iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
    background: #000;
    border-radius: 14px;
}

@media (max-width: 820px) {
    .video-pair,
    .video-pair-solo {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .video-pair-solo .video-pair-item {
        grid-column: auto;
    }
}

/* ===== RESPONSIVE (общие) ===== */
@media (max-width: 1024px) {
    .actors-grid { grid-template-columns: repeat(2, 1fr); }
    .actors-full-grid { grid-template-columns: repeat(3, 1fr); }
    .publications-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .hero::before { width: 55%; }
    .hero::after {
        width: 70%;
        background: linear-gradient(90deg, #0b0b0b 0%, #0b0b0b 35%, rgba(11, 11, 11, 0.6) 55%, transparent 100%);
    }
    .work-card { flex: 0 0 calc(33.333% - 11px); }
    .works-grid-page { grid-template-columns: repeat(3, 1fr); }
    .portfolio-filter-row { grid-template-columns: 1fr 1fr; }
    .filter-reset-btn { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(11, 11, 11, 0.98); backdrop-filter: blur(20px);
        flex-direction: column; padding: 20px 24px; gap: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transform: translateY(-120%); opacity: 0; pointer-events: none;
        transition: all 0.3s ease; max-height: 80vh; overflow-y: auto;
    }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-links a { font-size: 1rem; padding: 6px 0; width: 100%; text-align: left; }
    .nav-links a::after { bottom: 2px; }
    .nav-cta-btn { display: none; }

    section { padding: 60px 0; }
    .hero { min-height: 80vh; }
    .hero::before { width: 100%; opacity: 0.2; }
    .hero::after { width: 100%; background: linear-gradient(180deg, rgba(11, 11, 11, 0.2) 0%, #0b0b0b 60%, #0b0b0b 100%); }
    .hero .hero-content { max-width: 100%; }
    .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
    .hero p { font-size: 0.95rem; }
    .hero-buttons .btn-primary, .hero-buttons .btn-secondary { flex: 1 1 100%; justify-content: center; min-height: 44px; font-size: 0.85rem; }
    .scroll-indicator { display: none; }
    .contacts-grid { grid-template-columns: 1fr; gap: 28px; }
    .contacts-buttons .btn-telegram { width: 100%; justify-content: center; }
    .slider-btn { opacity: 1; pointer-events: auto; width: 32px; height: 32px; font-size: 0.9rem; }
    .slider-btn-prev { left: 4px; } .slider-btn-next { right: 4px; }
    .actors-full-grid { grid-template-columns: repeat(3, 1fr); }
    .work-card { flex: 0 0 calc(50% - 8px); }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .partner-item { height: 90px; }
    .movie-detail-grid { grid-template-columns: 1fr; }
    .movie-detail-left { position: static; }
    .movie-detail-poster { max-width: 280px; margin: 0 auto; }
    .movie-detail-trailer { max-width: 280px; margin: 0 auto; width: 100%; }
    .movie-detail-watch { max-width: 320px; }
    .actor-profile { grid-template-columns: 1fr; text-align: center; }
    .actor-profile-photo { max-width: 220px; margin: 0 auto; }
    .works-grid-page { grid-template-columns: repeat(2, 1fr); }

    .video-play-btn { width: 78px; height: 78px; }
    .video-play-btn .video-play-icon svg { width: 28px; height: 28px; }
}

@media (max-width: 600px) {
    section { padding: 40px 0; }
    .container { padding: 0 16px; }
    .nav-links { padding: 16px 20px; gap: 12px; }
    .nav-links a { font-size: 0.9rem; }
    .hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
    .hero p { font-size: 0.9rem; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .partner-item { height: 80px; padding: 12px; }
    .partner-item img { max-height: 45px; }
    .actors-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .actors-full-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .actor-card .actor-info h4 { font-size: 0.8rem; }
    .actor-card .actor-role { font-size: 0.6rem; }
    .publications-grid { grid-template-columns: 1fr; gap: 16px; }
    .news-grid { grid-template-columns: 1fr; gap: 16px; }
    .works-slider-wrapper { border-radius: 12px; }
    .work-card { flex: 0 0 calc(50% - 8px); border-radius: 12px; }
    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .slider-track img { max-width: 260px; height: 180px; }
    .slider-controls button { width: 34px; height: 34px; font-size: 0.9rem; }
    .btn-primary, .btn-secondary { padding: 12px 20px; font-size: 0.85rem; min-height: 44px; }
    .btn-telegram { padding: 10px 20px; font-size: 0.85rem; min-height: 42px; width: 100%; justify-content: center; }
    footer { padding: 20px 0; font-size: 0.7rem; }
    .works-grid-page { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .portfolio-filters { padding: 14px; }
    .portfolio-filter-row { grid-template-columns: 1fr; }
    .actor-card-wrap .audio-play-btn { width: 26px; height: 26px; }
    .actor-card-wrap .audio-play-icon { font-size: 0.6rem; }

    .video-play-btn { width: 64px; height: 64px; }
    .video-play-btn .video-play-icon svg { width: 24px; height: 24px; }
}

@media (max-width: 400px) {
    .container { padding: 0 12px; }
    .hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
    .partners-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .partner-item { height: 70px; padding: 10px; }
    .partner-item img { max-height: 40px; }
    .actors-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .actor-card .actor-info h4 { font-size: 0.75rem; }
    .work-card { flex: 0 0 calc(50% - 6px); }
    .slider-btn { width: 28px; height: 28px; font-size: 0.7rem; }
    .slider-btn-prev { left: 2px; } .slider-btn-next { right: 2px; }
    .slider-track img { max-width: 200px; height: 140px; }
    .works-grid-page { grid-template-columns: 1fr; }
}

@media (hover: none) {
    .slider-btn { opacity: 1; pointer-events: auto; }
    .work-card:hover { transform: none; }
    .work-card:active { transform: scale(0.97); }
    .actor-card:hover { transform: none; }
    .actor-card:active { transform: scale(0.97); }
    .btn-primary:active, .btn-secondary:active, .btn-telegram:active { transform: scale(0.95); }
    .video-play-btn { animation: none; }
}

/* ===== RELATED MOVIES SLIDER (под постером) ===== */
.related-slider {
    margin-top: 18px;
    position: relative;
}
.related-slider-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #888;
    font-weight: 600;
    margin-bottom: 10px;
}
.related-slider-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}
.related-slider-track {
    display: flex;
    gap: 10px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.related-card {
    flex: 0 0 calc(33.333% - 7px);
    min-width: 0;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.related-card:hover {
    transform: translateY(-3px);
    border-color: rgba(227, 27, 35, 0.35);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}
.related-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.related-card:hover img { transform: scale(1.06); }
.related-card-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 8px 6px 6px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
    font-size: 0.65rem;
    line-height: 1.2;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #555; font-size: 1.4rem;
    background: linear-gradient(135deg, #232935, #161a22);
}

.related-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    padding: 0;
    font-family: inherit;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    opacity: 0;
    pointer-events: none;
}
.related-slider-wrap:hover .related-nav {
    opacity: 1;
    pointer-events: auto;
}
.related-nav:hover {
    background: rgba(227, 27, 35, 0.7);
    border-color: rgba(227, 27, 35, 0.6);
}
.related-nav[disabled] {
    opacity: 0.25 !important;
    pointer-events: none;
    cursor: default;
}
.related-nav-prev { left: -6px; }
.related-nav-next { right: -6px; }

.related-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.related-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}
.related-dot.active {
    background: #e31b23;
    width: 16px;
    border-radius: 3px;
}

/* Мобильный адаптив */
@media (max-width: 820px) {
    .related-slider { margin-top: 14px; }
    .related-card { flex: 0 0 calc(25% - 8px); }
    .related-nav { opacity: 1; pointer-events: auto; width: 24px; height: 24px; }
    .related-nav-prev { left: -4px; }
    .related-nav-next { right: -4px; }
}
@media (max-width: 600px) {
    .related-card { flex: 0 0 calc(33.333% - 7px); }
    .related-slider-title { font-size: 0.65rem; margin-bottom: 8px; }
    .related-card-overlay { font-size: 0.6rem; padding: 6px 5px 5px; }
}
@media (max-width: 400px) {
    .related-card { flex: 0 0 calc(50% - 5px); }
    .related-nav { display: none; }
}
@media (hover: none) {
    .related-nav { opacity: 1; pointer-events: auto; }
    .related-card:hover { transform: none; }
    .related-card:active { transform: scale(0.97); }
}
/* ===== RELATED MOVIES SLIDER (под постером) ===== */
.related-slider {
    margin-top: 18px;
    position: relative;
}
.related-slider-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #888;
    font-weight: 600;
    margin-bottom: 10px;
}
.related-slider-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}
.related-slider-track {
    display: flex;
    gap: 10px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.related-card {
    flex: 0 0 calc(33.333% - 7px);
    min-width: 0;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.related-card:hover {
    transform: translateY(-3px);
    border-color: rgba(227, 27, 35, 0.35);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}
.related-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.related-card:hover img { transform: scale(1.06); }
.related-card-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 8px 6px 6px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
    font-size: 0.65rem;
    line-height: 1.2;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #555; font-size: 1.4rem;
    background: linear-gradient(135deg, #232935, #161a22);
}

.related-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    padding: 0;
    font-family: inherit;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    opacity: 0;
    pointer-events: none;
}
.related-slider-wrap:hover .related-nav {
    opacity: 1;
    pointer-events: auto;
}
.related-nav:hover {
    background: rgba(227, 27, 35, 0.7);
    border-color: rgba(227, 27, 35, 0.6);
}
.related-nav[disabled] {
    opacity: 0.25 !important;
    pointer-events: none;
    cursor: default;
}
.related-nav-prev { left: -6px; }
.related-nav-next { right: -6px; }

.related-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.related-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}
.related-dot.active {
    background: #e31b23;
    width: 16px;
    border-radius: 3px;
}

@media (max-width: 820px) {
    .related-slider { margin-top: 14px; }
    .related-card { flex: 0 0 calc(25% - 8px); }
    .related-nav { opacity: 1; pointer-events: auto; width: 24px; height: 24px; }
    .related-nav-prev { left: -4px; }
    .related-nav-next { right: -4px; }
}
@media (max-width: 600px) {
    .related-card { flex: 0 0 calc(33.333% - 7px); }
    .related-slider-title { font-size: 0.65rem; margin-bottom: 8px; }
    .related-card-overlay { font-size: 0.6rem; padding: 6px 5px 5px; }
}
@media (max-width: 400px) {
    .related-card { flex: 0 0 calc(50% - 5px); }
    .related-nav { display: none; }
}
@media (hover: none) {
    .related-nav { opacity: 1; pointer-events: auto; }
    .related-card:hover { transform: none; }
    .related-card:active { transform: scale(0.97); }
}
