/*
Theme Name: Галактика Кино
Theme URI: https://galaxykino.ru
Author: Galaxykino Team
Author URI: https://galaxykino.ru
Description: Кинотеатральная тема для сайта Галактика Кино — фильмы, сериалы, актёры, афиша и театр. Интеграция с TMDB API.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: galaxykino
Tags: movies, cinema, entertainment, dark, responsive
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
*/

/* ========================================
   CSS VARIABLES
======================================== */
:root {
    /* Primary palette */
    --gk-bg-dark: #0a0a12;
    --gk-bg-card: #12121e;
    --gk-bg-card-hover: #1a1a2e;
    --gk-bg-sidebar: #0e0e1a;
    --gk-bg-header: rgba(10, 10, 18, 0.95);
    --gk-bg-footer: #08080f;

    /* Accent colors */
    --gk-accent: #e50914;
    --gk-accent-hover: #ff1a25;
    --gk-accent-gold: #f5c518;
    --gk-accent-blue: #4a9eff;
    --gk-accent-purple: #8b5cf6;

    /* Text */
    --gk-text: #e8e8ec;
    --gk-text-muted: #8a8a9a;
    --gk-text-dim: #55556a;

    /* Borders & Shadows */
    --gk-border: rgba(255, 255, 255, 0.06);
    --gk-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --gk-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --gk-glow-red: 0 0 40px rgba(229, 9, 20, 0.15);

    /* Typography */
    --gk-font-heading: 'Unbounded', cursive;
    --gk-font-body: 'Nunito Sans', sans-serif;
    --gk-font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --gk-radius: 12px;
    --gk-radius-sm: 8px;
    --gk-radius-lg: 20px;
    --gk-gap: 24px;
    --gk-container: 1320px;

    /* Transitions */
    --gk-transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --gk-transition-fast: 0.15s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--gk-font-body);
    background-color: var(--gk-bg-dark);
    color: var(--gk-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--gk-text);
    text-decoration: none;
    transition: color var(--gk-transition-fast);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--gk-font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* ========================================
   LAYOUT
======================================== */
.gk-container {
    max-width: var(--gk-container);
    margin: 0 auto;
    padding: 0 var(--gk-gap);
}

.gk-grid {
    display: grid;
    gap: var(--gk-gap);
}

.gk-grid--main {
    grid-template-columns: 1fr 320px;
}

.gk-flex {
    display: flex;
    align-items: center;
    gap: var(--gk-gap);
}

/* ========================================
   HEADER
======================================== */
.gk-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--gk-bg-header);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gk-border);
    padding: 0 var(--gk-gap);
    height: 72px;
    transition: all var(--gk-transition);
}

.gk-header.scrolled {
    height: 60px;
    box-shadow: var(--gk-shadow);
}

.gk-header__inner {
    max-width: var(--gk-container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.gk-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--gk-font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gk-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gk-logo__icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gk-accent) 0%, #ff6b35 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--gk-glow-red);
}

.gk-logo span {
    background: linear-gradient(90deg, var(--gk-accent), #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.gk-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gk-nav a {
    padding: 8px 16px;
    border-radius: var(--gk-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gk-text-muted);
    transition: all var(--gk-transition-fast);
    position: relative;
}

.gk-nav a:hover,
.gk-nav a.active {
    color: var(--gk-text);
    background: rgba(255, 255, 255, 0.05);
}

.gk-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--gk-accent);
    border-radius: 2px;
}

/* Search */
.gk-search {
    position: relative;
}

.gk-search__input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--gk-border);
    border-radius: 50px;
    padding: 10px 44px 10px 18px;
    color: var(--gk-text);
    font-family: var(--gk-font-body);
    font-size: 0.9rem;
    width: 260px;
    transition: all var(--gk-transition);
    outline: none;
}

.gk-search__input:focus {
    border-color: var(--gk-accent);
    background: rgba(255, 255, 255, 0.08);
    width: 320px;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.gk-search__input::placeholder {
    color: var(--gk-text-dim);
}

.gk-search__btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gk-accent);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background var(--gk-transition-fast);
}

.gk-search__btn:hover {
    background: var(--gk-accent-hover);
}

/* Mobile toggle */
.gk-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.gk-burger span {
    width: 24px;
    height: 2px;
    background: var(--gk-text);
    border-radius: 2px;
    transition: all var(--gk-transition-fast);
}

/* ========================================
   HERO SLIDER
======================================== */
.gk-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 750px;
    margin-top: 72px;
    overflow: hidden;
}

.gk-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.gk-hero__slide.active {
    opacity: 1;
}

.gk-hero__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.gk-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        var(--gk-bg-dark) 0%,
        rgba(10, 10, 18, 0.6) 40%,
        rgba(10, 10, 18, 0.2) 100%
    );
}

.gk-hero__content {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    padding: 0 var(--gk-gap);
}

.gk-hero__inner {
    max-width: var(--gk-container);
    margin: 0 auto;
}

.gk-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid rgba(229, 9, 20, 0.3);
    color: var(--gk-accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.gk-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 12px;
    max-width: 700px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.gk-hero__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    color: var(--gk-text-muted);
    font-size: 0.9rem;
}

.gk-hero__meta .rating {
    color: var(--gk-accent-gold);
    font-weight: 700;
}

.gk-hero__desc {
    max-width: 550px;
    color: var(--gk-text-muted);
    margin-bottom: 28px;
    font-size: 1rem;
    line-height: 1.7;
}

.gk-hero__actions {
    display: flex;
    gap: 12px;
}

/* Slider dots */
.gk-hero__dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.gk-hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all var(--gk-transition-fast);
}

.gk-hero__dot.active {
    background: var(--gk-accent);
    width: 28px;
    border-radius: 5px;
}

/* ========================================
   BUTTONS
======================================== */
.gk-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--gk-radius-sm);
    font-family: var(--gk-font-body);
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all var(--gk-transition);
    text-transform: none;
}

.gk-btn--primary {
    background: var(--gk-accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(229, 9, 20, 0.3);
}

.gk-btn--primary:hover {
    background: var(--gk-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(229, 9, 20, 0.4);
    color: #fff;
}

.gk-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gk-text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.gk-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
    color: var(--gk-text);
}

.gk-btn--small {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* ========================================
   SECTION HEADERS
======================================== */
.gk-section {
    padding: 60px 0;
}

.gk-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.gk-section__title {
    font-size: 1.6rem;
    position: relative;
    padding-left: 16px;
}

.gk-section__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--gk-accent);
    border-radius: 2px;
}

.gk-section__link {
    font-size: 0.85rem;
    color: var(--gk-accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gk-section__link:hover {
    color: var(--gk-accent-hover);
}

/* ========================================
   MOVIE CARDS
======================================== */
.gk-movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.gk-card {
    position: relative;
    border-radius: var(--gk-radius);
    overflow: hidden;
    background: var(--gk-bg-card);
    transition: all var(--gk-transition);
    cursor: pointer;
}

.gk-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--gk-shadow-card);
}

.gk-card__poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.gk-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--gk-transition);
}

.gk-card:hover .gk-card__poster img {
    transform: scale(1.08);
}

.gk-card__rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gk-accent-gold);
    display: flex;
    align-items: center;
    gap: 4px;
}

.gk-card__quality {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gk-accent);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.gk-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--gk-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gk-card:hover .gk-card__overlay {
    opacity: 1;
}

.gk-card__play {
    width: 56px;
    height: 56px;
    background: var(--gk-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.5);
    transform: scale(0.8);
    transition: transform var(--gk-transition);
}

.gk-card:hover .gk-card__play {
    transform: scale(1);
}

.gk-card__info {
    padding: 14px;
}

.gk-card__title {
    font-family: var(--gk-font-body);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gk-card__meta {
    font-size: 0.78rem;
    color: var(--gk-text-muted);
    display: flex;
    gap: 8px;
}

/* ========================================
   HORIZONTAL SCROLL (CAROUSEL)
======================================== */
.gk-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gk-carousel::-webkit-scrollbar {
    display: none;
}

.gk-carousel .gk-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
}

/* ========================================
   SIDEBAR
======================================== */
.gk-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.gk-widget {
    background: var(--gk-bg-card);
    border-radius: var(--gk-radius);
    border: 1px solid var(--gk-border);
    padding: 24px;
}

.gk-widget__title {
    font-size: 1rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gk-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sponsor Banner */
.gk-sponsor {
    border-radius: var(--gk-radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 300/250;
    background: var(--gk-bg-card);
    border: 1px solid var(--gk-border);
}

.gk-sponsor__label {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.65rem;
    color: var(--gk-text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 2;
}

.gk-sponsor img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Top Movies List */
.gk-top-list {
    list-style: none;
}

.gk-top-list__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gk-border);
    transition: all var(--gk-transition-fast);
}

.gk-top-list__item:last-child {
    border-bottom: none;
}

.gk-top-list__item:hover {
    padding-left: 8px;
}

.gk-top-list__rank {
    font-family: var(--gk-font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gk-text-dim);
    min-width: 28px;
}

.gk-top-list__rank--gold { color: var(--gk-accent-gold); }
.gk-top-list__rank--silver { color: #c0c0c0; }
.gk-top-list__rank--bronze { color: #cd7f32; }

.gk-top-list__poster {
    width: 44px;
    height: 62px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.gk-top-list__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gk-top-list__info h4 {
    font-family: var(--gk-font-body);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.gk-top-list__info span {
    font-size: 0.75rem;
    color: var(--gk-text-muted);
}

/* ========================================
   SINGLE MOVIE PAGE
======================================== */
.gk-movie-hero {
    position: relative;
    min-height: 60vh;
    margin-top: 72px;
    display: flex;
    align-items: flex-end;
    padding: 60px 0;
}

.gk-movie-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.gk-movie-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3) blur(2px);
}

.gk-movie-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--gk-bg-dark), rgba(10,10,18,0.5) 50%, rgba(10,10,18,0.8));
}

.gk-movie-detail {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.gk-movie-detail__poster {
    border-radius: var(--gk-radius-lg);
    overflow: hidden;
    box-shadow: var(--gk-shadow);
    position: sticky;
    top: 100px;
}

.gk-movie-detail__poster img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.gk-movie-detail__info {
    padding-top: 20px;
}

.gk-movie-detail__genres {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.gk-genre-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    color: var(--gk-text-muted);
    transition: all var(--gk-transition-fast);
}

.gk-genre-tag:hover {
    border-color: var(--gk-accent);
    color: var(--gk-accent);
}

.gk-movie-detail__title {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.gk-movie-detail__original {
    color: var(--gk-text-dim);
    font-size: 1rem;
    margin-bottom: 20px;
}

.gk-movie-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.gk-movie-stat {
    text-align: center;
}

.gk-movie-stat__value {
    font-family: var(--gk-font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gk-accent-gold);
}

.gk-movie-stat__label {
    font-size: 0.75rem;
    color: var(--gk-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gk-movie-detail__desc {
    color: var(--gk-text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 680px;
}

/* Trailer embed */
.gk-trailer {
    margin: 40px 0;
}

.gk-trailer__embed {
    position: relative;
    padding-top: 56.25%;
    border-radius: var(--gk-radius);
    overflow: hidden;
    background: #000;
}

.gk-trailer__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Cast grid */
.gk-cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}

.gk-cast-card {
    text-align: center;
    padding: 16px 8px;
    border-radius: var(--gk-radius);
    background: var(--gk-bg-card);
    transition: all var(--gk-transition);
}

.gk-cast-card:hover {
    background: var(--gk-bg-card-hover);
    transform: translateY(-4px);
}

.gk-cast-card__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    border: 2px solid var(--gk-border);
}

.gk-cast-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gk-cast-card__name {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.gk-cast-card__role {
    font-size: 0.72rem;
    color: var(--gk-text-muted);
}

/* ========================================
   ACTOR PAGE
======================================== */
.gk-actor-hero {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    padding-top: 112px;
    padding-bottom: 60px;
    align-items: start;
}

.gk-actor__photo {
    border-radius: var(--gk-radius-lg);
    overflow: hidden;
    box-shadow: var(--gk-shadow);
}

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

.gk-actor__name {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.gk-actor__original-name {
    color: var(--gk-text-dim);
    font-size: 1rem;
    margin-bottom: 24px;
}

.gk-actor-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.gk-actor-fact {
    background: var(--gk-bg-card);
    padding: 16px;
    border-radius: var(--gk-radius-sm);
    border: 1px solid var(--gk-border);
}

.gk-actor-fact__label {
    font-size: 0.72rem;
    color: var(--gk-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.gk-actor-fact__value {
    font-weight: 700;
    font-size: 0.95rem;
}

.gk-actor__bio {
    color: var(--gk-text-muted);
    line-height: 1.8;
    font-size: 1rem;
    max-width: 700px;
}

/* ========================================
   SERIES PAGE
======================================== */
.gk-seasons {
    margin-top: 40px;
}

.gk-season-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.gk-season-tab {
    padding: 10px 20px;
    border-radius: var(--gk-radius-sm);
    background: var(--gk-bg-card);
    border: 1px solid var(--gk-border);
    color: var(--gk-text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--gk-transition-fast);
    font-family: var(--gk-font-body);
}

.gk-season-tab:hover,
.gk-season-tab.active {
    background: var(--gk-accent);
    border-color: var(--gk-accent);
    color: #fff;
}

.gk-episodes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gk-episode {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 20px;
    align-items: center;
    background: var(--gk-bg-card);
    border-radius: var(--gk-radius);
    border: 1px solid var(--gk-border);
    padding: 12px;
    transition: all var(--gk-transition);
}

.gk-episode:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: var(--gk-bg-card-hover);
}

.gk-episode__thumb {
    aspect-ratio: 16/9;
    border-radius: var(--gk-radius-sm);
    overflow: hidden;
    position: relative;
}

.gk-episode__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gk-episode__number {
    font-family: var(--gk-font-heading);
    font-size: 0.75rem;
    color: var(--gk-accent);
    margin-bottom: 4px;
}

.gk-episode__title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.gk-episode__desc {
    font-size: 0.82rem;
    color: var(--gk-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gk-episode__duration {
    font-size: 0.82rem;
    color: var(--gk-text-muted);
    white-space: nowrap;
}

/* ========================================
   AFISHA (SHOWTIMES)
======================================== */
.gk-afisha {
    padding-top: 112px;
}

.gk-date-picker {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.gk-date-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 18px;
    border-radius: var(--gk-radius-sm);
    background: var(--gk-bg-card);
    border: 1px solid var(--gk-border);
    cursor: pointer;
    transition: all var(--gk-transition-fast);
    font-family: var(--gk-font-body);
    color: var(--gk-text);
}

.gk-date-btn:hover,
.gk-date-btn.active {
    border-color: var(--gk-accent);
    background: rgba(229, 9, 20, 0.1);
}

.gk-date-btn.active {
    background: var(--gk-accent);
    border-color: var(--gk-accent);
}

.gk-date-btn__day {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--gk-text-muted);
    margin-bottom: 2px;
}

.gk-date-btn.active .gk-date-btn__day {
    color: rgba(255,255,255,0.8);
}

.gk-date-btn__num {
    font-weight: 700;
    font-size: 1.1rem;
}

.gk-showtime-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    background: var(--gk-bg-card);
    border-radius: var(--gk-radius);
    border: 1px solid var(--gk-border);
    padding: 20px;
    margin-bottom: 16px;
    transition: all var(--gk-transition);
}

.gk-showtime-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.gk-showtime-card__poster {
    border-radius: var(--gk-radius-sm);
    overflow: hidden;
    aspect-ratio: 2/3;
}

.gk-showtime-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gk-showtime-card__times {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.gk-time-slot {
    padding: 8px 16px;
    border-radius: var(--gk-radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--gk-border);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--gk-transition-fast);
    font-family: var(--gk-font-body);
    color: var(--gk-text);
}

.gk-time-slot:hover {
    border-color: var(--gk-accent);
    background: rgba(229, 9, 20, 0.1);
}

.gk-time-slot__format {
    font-size: 0.7rem;
    color: var(--gk-accent-blue);
    display: block;
}

.gk-time-slot__price {
    font-size: 0.7rem;
    color: var(--gk-text-muted);
}

/* ========================================
   THEATER PAGE
======================================== */
.gk-theater-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.gk-theater-map {
    border-radius: var(--gk-radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--gk-bg-card);
}

.gk-theater-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.gk-theater-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gk-theater-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--gk-bg-card);
    border-radius: var(--gk-radius-sm);
    border: 1px solid var(--gk-border);
}

.gk-theater-detail__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(229, 9, 20, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gk-accent);
    font-size: 1.1rem;
}

.gk-theater-detail__label {
    font-size: 0.75rem;
    color: var(--gk-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.gk-theater-detail__value {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Hall scheme */
.gk-hall {
    background: var(--gk-bg-card);
    border-radius: var(--gk-radius);
    padding: 40px;
    border: 1px solid var(--gk-border);
}

.gk-hall__screen {
    text-align: center;
    padding: 12px;
    margin-bottom: 40px;
    background: linear-gradient(180deg, rgba(229, 9, 20, 0.2), transparent);
    border-radius: var(--gk-radius-sm);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gk-text-muted);
}

.gk-hall__rows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.gk-hall__row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gk-hall__row-label {
    width: 24px;
    font-size: 0.72rem;
    color: var(--gk-text-dim);
    text-align: center;
}

.gk-seat {
    width: 26px;
    height: 26px;
    border-radius: 5px 5px 8px 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all var(--gk-transition-fast);
    font-size: 0;
}

.gk-seat:hover {
    background: rgba(74, 158, 255, 0.3);
    border-color: var(--gk-accent-blue);
}

.gk-seat--taken {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.04);
    cursor: not-allowed;
    opacity: 0.3;
}

.gk-seat--selected {
    background: var(--gk-accent);
    border-color: var(--gk-accent);
}

.gk-seat--vip {
    background: rgba(245, 197, 24, 0.15);
    border-color: rgba(245, 197, 24, 0.3);
}

/* ========================================
   FOOTER
======================================== */
.gk-footer {
    background: var(--gk-bg-footer);
    border-top: 1px solid var(--gk-border);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.gk-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.gk-footer__about {
    max-width: 320px;
}

.gk-footer__about p {
    color: var(--gk-text-muted);
    font-size: 0.88rem;
    margin-top: 16px;
    line-height: 1.7;
}

.gk-footer__heading {
    font-family: var(--gk-font-heading);
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gk-footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gk-footer__links a {
    font-size: 0.88rem;
    color: var(--gk-text-muted);
}

.gk-footer__links a:hover {
    color: var(--gk-text);
    padding-left: 4px;
}

.gk-footer__bottom {
    border-top: 1px solid var(--gk-border);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--gk-text-dim);
}

.gk-footer__socials {
    display: flex;
    gap: 12px;
}

.gk-footer__socials a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--gk-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gk-text-muted);
    transition: all var(--gk-transition-fast);
}

.gk-footer__socials a:hover {
    background: var(--gk-accent);
    border-color: var(--gk-accent);
    color: #fff;
}

/* ========================================
   PAGINATION
======================================== */
.gk-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
}

.gk-pagination a,
.gk-pagination span {
    padding: 10px 16px;
    border-radius: var(--gk-radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--gk-transition-fast);
}

.gk-pagination a {
    background: var(--gk-bg-card);
    border: 1px solid var(--gk-border);
    color: var(--gk-text-muted);
}

.gk-pagination a:hover {
    border-color: var(--gk-accent);
    color: var(--gk-text);
}

.gk-pagination .current {
    background: var(--gk-accent);
    color: #fff;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .gk-grid--main {
        grid-template-columns: 1fr;
    }

    .gk-sidebar {
        flex-direction: row;
        overflow-x: auto;
    }

    .gk-sidebar > * {
        flex: 0 0 300px;
    }

    .gk-movie-detail {
        grid-template-columns: 200px 1fr;
        gap: 28px;
    }

    .gk-actor-hero {
        grid-template-columns: 220px 1fr;
        gap: 32px;
    }

    .gk-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .gk-theater-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --gk-gap: 16px;
    }

    .gk-header {
        height: 60px;
    }

    .gk-hero {
        margin-top: 60px;
        height: 55vh;
    }

    .gk-nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--gk-bg-dark);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        z-index: 999;
    }

    .gk-nav.open {
        display: flex;
    }

    .gk-nav a {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .gk-burger {
        display: flex;
    }

    .gk-search {
        display: none;
    }

    .gk-hero__title {
        font-size: 1.6rem;
    }

    .gk-movie-detail {
        grid-template-columns: 1fr;
    }

    .gk-movie-detail__poster {
        max-width: 200px;
        position: static;
    }

    .gk-actor-hero {
        grid-template-columns: 1fr;
        padding-top: 80px;
    }

    .gk-actor__photo {
        max-width: 200px;
    }

    .gk-episode {
        grid-template-columns: 1fr;
    }

    .gk-episode__thumb {
        max-width: 240px;
    }

    .gk-footer__grid {
        grid-template-columns: 1fr;
    }

    .gk-showtime-card {
        grid-template-columns: 80px 1fr;
        gap: 16px;
        padding: 14px;
    }

    .gk-movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .gk-movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gk-hero__actions {
        flex-direction: column;
    }

    .gk-hero__actions .gk-btn {
        width: 100%;
        justify-content: center;
    }

    .gk-cast-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
