
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&family=Inter:wght@400;500;600&display=swap');

:root {

    --bg-main: #0F1115;
    --bg-card: #1A1C23;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A5B1;
    --accent: #FF5722;
    --border-color: #2D313A;
    --shadow: 0 10px 25px rgba(0,0,0,0.5);
    
    --kp-color: #3bb33b;
    --imdb-color: #f5c518;
}

body.light-theme {
    --bg-main: #F4F6F8;
    --bg-card: #FFFFFF;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --accent: #E64A19;
    --border-color: #E5E7EB;
    --shadow: 0 4px 6px rgba(0,0,0,0.05);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}


.hero-banner {
    position: relative;
    width: 100%;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 20px;
    box-sizing: border-box;
}

.hero-bg {
    position: absolute;
    top: -10%; left: -10%; right: -10%; bottom: -10%;
    background-size: cover;
    background-position: center top;
    filter: blur(20px) brightness(0.4);
    z-index: 1;
}

body.light-theme .hero-bg {
    filter: blur(20px);
}

body.light-theme .hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.65);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    max-width: 1200px;
    width: 100%;
    gap: 40px;
    align-items: flex-start;
}

.hero-poster {
    flex: 0 0 300px;
}

.hero-poster img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: block;
}

.hero-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #FFFFFF;
}

body.light-theme .hero-info {
    color: #111827;
}

body.light-theme .hero-info p {
    color: #374151 !important;
}

.hero-info h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.hero-info h1 span {
    font-size: 1.8rem;
    font-weight: 600;
    opacity: 0.9;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

body.light-theme .hero-meta {
    color: rgba(0, 0, 0, 0.7);
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
}

body.light-theme .badge {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #111827;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.rating-badge {
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 800;
    color: #000;
}

.rating-kp { background-color: var(--kp-color); color: #fff;}
.rating-imdb { background-color: var(--imdb-color); }

.blocked-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(229, 9, 20, 0.4);
    color: #ff6b6b;
    border: 1px solid rgba(229, 9, 20, 0.5);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 15px;
    backdrop-filter: blur(10px);
    max-width: 500px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

body.light-theme .blocked-notice {
    background: rgba(229, 9, 20, 0.15);
    color: #c62828; /* Насыщенный темно-красный для светлой темы */
    border: 1px solid rgba(229, 9, 20, 0.3);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

body.light-theme .blocked-notice i {
    color: #d32f2f;
}


.content-grid {
    display: flex;
    max-width: 1200px;
    margin: -40px auto 40px auto;
    gap: 30px;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

.main-column {
    flex: 7;
}

.sidebar-column {
    flex: 3;
}

.card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}


.player-wrapper {
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.player-tabs {
    display: flex;
    background: #111;
    border-bottom: 1px solid #333;
}

.player-tab {
    padding: 15px 25px;
    color: #888;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    user-select: none;
}

.player-tab.active {
    color: #fff;
    background: #222;
    border-bottom: 2px solid var(--accent);
}

.player-tab:hover:not(.active) {
    color: #ddd;
    background: #1a1a1a;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    cursor: pointer;
    display: block;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    pointer-events: none;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 87, 34, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.play-button-overlay:after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 5px;
}

.video-container:hover .play-button-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 87, 34, 1);
}



.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    background: var(--accent);
    color: #fff;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
    box-sizing: border-box;
    transition: transform 0.2s;
}

.btn-download:hover {
    transform: translateY(-2px);
    background: #E64A19;
}


h3.sidebar-title {
    font-family: 'Outfit', sans-serif;
    margin: 0 0 20px 0;
    font-size: 1.4rem;
}

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

.tech-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.tech-list li:last-child {
    border-bottom: none;
}

.tech-list strong {
    color: var(--text-primary);
}


.trending-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.trending-item {
    width: calc(50% - 7.5px);
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 2/3;
}

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

.trending-item:hover img {
    transform: scale(1.05);
}

.trending-title {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    padding: 20px 10px 10px 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}


.content_info_ext {

    margin: 20px 0;
    text-align: center;
}

.alloha-wrapper {
    margin-bottom: 50px;
}


@media (max-width: 900px) {
    .content-grid {
        flex-direction: column;
    }
    
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-poster {
        flex: 0 0 220px;
    }

    .hero-meta {
        justify-content: center;
    }
}
