/**
 * HDFilmCehennemi benzeri tema
 */
:root {
    --hdce-bg: #141416;
    --hdce-surface: #1c1c1f;
    --hdce-surface-2: #26262b;
    --hdce-border: #2e2e35;
    --hdce-text: #fafafa;
    --hdce-muted: #a1a1aa;
    --hdce-orange: #f97316;
    --hdce-orange-dark: #ea580c;
    --hdce-gold: #fbbf24;
    --hdce-max: 1280px;
}

body {
    background: var(--hdce-bg) !important;
    color: var(--hdce-text);
}

a {
    color: #e4e4e7;
}

/* Ortak genişlik */
.hdce-wrap,
.container,
.fhdi-header-inner,
.fhdi-section-title,
.fragman-slider,
.site-content > .container,
.site-footer > .container {
    width: 100%;
    max-width: var(--hdce-max);
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

/* === HEADER === */
.site-header {
    background: var(--hdce-surface) !important;
    border-bottom: 1px solid var(--hdce-border);
    padding: 0 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.fhdi-header-top {
    border-bottom: none;
}

.fhdi-header-brand {
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--hdce-border);
}

.fhdi-header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.fhdi-header-nav-wrap {
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--hdce-border);
}

.fhdi-header-nav-inner {
    min-height: 42px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.fhdi-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fhdi-logo {
    flex-shrink: 0;
}

.fhdi-logo .site-title-text {
    color: #fff !important;
    font-size: 1.2rem;
    font-weight: 800;
    white-space: nowrap;
    transition: text-shadow 0.25s ease;
}

.fhdi-logo .site-title-text:hover {
    color: #fff !important;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.4),
        0 0 14px rgba(249, 115, 22, 0.75);
}

.fhdi-logo .site-title-text span {
    color: var(--hdce-orange);
}

.fhdi-main-nav {
    flex: 1;
    width: 100%;
    min-width: 0;
}

.fhdi-main-nav .nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 6px;
    list-style: none;
    margin: 0;
    padding: 2px 0;
    justify-content: flex-start;
}

.fhdi-main-nav .menu-item {
    flex: 0 0 auto;
}

.fhdi-main-nav a {
    display: inline-block;
    color: #f4f4f5;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    transition: color 0.2s ease, text-shadow 0.25s ease, background 0.2s ease;
}

.fhdi-main-nav a:hover,
.fhdi-main-nav a:focus-visible,
.fhdi-main-nav .current-menu-item > a {
    color: #ffffff !important;
    background: rgba(249, 115, 22, 0.12);
    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.35),
        0 0 10px rgba(249, 115, 22, 0.9),
        0 0 20px rgba(249, 115, 22, 0.55),
        0 0 30px rgba(251, 146, 60, 0.35);
}

.hdce-header-search {
    display: flex;
    align-items: stretch;
    width: min(260px, 42vw);
    flex-shrink: 0;
    background: var(--hdce-surface-2);
    border: 1px solid var(--hdce-border);
    border-radius: 8px;
    overflow: hidden;
}

.hdce-header-search .search-field {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #fff;
    padding: 8px 10px;
    font-size: 0.85rem;
}

.hdce-header-search .search-submit {
    border: none;
    background: transparent;
    color: var(--hdce-muted);
    padding: 0 10px;
    cursor: pointer;
}

.hdce-header-search .search-submit:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.9);
}

/* Neon hover — footer, sidebar, mobil menü */
.mobile-nav a,
.site-footer a,
.widget a,
.pagination a,
.fhdi-filter-chip {
    transition: color 0.2s ease, text-shadow 0.25s ease;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible,
.widget a:hover,
.widget a:focus-visible,
.pagination a:hover,
.pagination a:focus-visible {
    color: #ffffff !important;
    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.3),
        0 0 10px rgba(249, 115, 22, 0.85),
        0 0 18px rgba(249, 115, 22, 0.5);
}

.fhdi-filter-bar {
    background: var(--hdce-surface);
    padding: 10px 0;
    border-bottom: 1px solid var(--hdce-border);
}

.fhdi-filter-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.fhdi-filter-chip {
    flex: 0 0 auto;
    background: var(--hdce-surface-2);
    border: 1px solid var(--hdce-border);
    color: #e4e4e7;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.fhdi-filter-chip:hover {
    border-color: var(--hdce-orange);
    color: var(--hdce-orange);
}

.hamburger-line {
    background: #fff;
}

/* === STORIES === */
.hdce-stories {
    background: var(--hdce-bg);
    border-bottom: 1px solid var(--hdce-border);
    padding: 14px 0 10px;
}

.hdce-stories-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.hdce-story-item {
    flex: 0 0 auto;
    width: 78px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: inherit;
    text-align: center;
}

.hdce-story-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 6px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--hdce-orange), #fb923c, var(--hdce-gold));
}

.hdce-story-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--hdce-bg);
}

.hdce-story-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--hdce-surface-2);
    border: 2px solid var(--hdce-bg);
    font-weight: 800;
    color: var(--hdce-orange);
}

.hdce-story-name {
    display: block;
    font-size: 0.68rem;
    line-height: 1.2;
    color: var(--hdce-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === YAKINDA GELECEK === */
.hdce-coming-soon {
    background: var(--hdce-bg);
    border-bottom: 1px solid var(--hdce-border);
    padding: 12px 0 16px;
}

.hdce-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 0 4px;
}

.hdce-coming-title {
    margin: 0;
    font-size: 1.05rem;
}

.hdce-section-more {
    font-size: 0.78rem;
    color: var(--hdce-orange);
    text-decoration: none;
    white-space: nowrap;
}

.hdce-section-more:hover {
    text-decoration: underline;
}

.hdce-coming-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.hdce-coming-item {
    flex: 0 0 auto;
    width: 88px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.hdce-coming-poster {
    position: relative;
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 6px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--hdce-border);
    background: var(--hdce-surface-2);
}

.hdce-coming-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hdce-coming-date {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: var(--hdce-orange);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 4px;
}

.hdce-coming-name {
    display: block;
    font-size: 0.68rem;
    line-height: 1.2;
    color: var(--hdce-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hdce-coming-item:hover .hdce-coming-poster {
    border-color: var(--hdce-orange);
}

.hdce-story-modal[hidden] {
    display: none !important;
}

.hdce-story-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hdce-story-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.hdce-story-card {
    position: relative;
    z-index: 1;
    width: min(340px, 92vw);
    background: var(--hdce-surface);
    border: 1px solid var(--hdce-border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.hdce-story-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.hdce-story-poster img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
}

.hdce-story-modal-title {
    margin: 12px 0 6px;
    font-size: 1.05rem;
    color: #fff;
}

.hdce-story-modal-meta {
    color: var(--hdce-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.hdce-story-watch {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 12px !important;
    border-radius: 8px !important;
}

/* === SLIDER === */
.fragman-slider-wrapper {
    background: var(--hdce-bg);
    padding: 16px 0 8px;
    border-bottom: 1px solid var(--hdce-border);
    margin-bottom: 0;
}

.fhdi-section-title {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 auto 12px;
}

.slider-btn {
    background: var(--hdce-surface-2) !important;
    border: 1px solid var(--hdce-border) !important;
    color: #fff !important;
}

/* === İÇERİK === */
.site-content {
    padding: 20px 0 40px;
}

.content-area {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.content-wrapper {
    background: transparent;
    border: none;
    padding: 0;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.fhdi-page-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 16px;
    color: #fff;
}

/* === FİLM GRİD (ana sayfa) === */
.film-grid-home {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.film-card-grid {
    background: var(--hdce-surface);
    border: 1px solid var(--hdce-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.film-card-grid:hover {
    transform: translateY(-3px);
    border-color: rgba(249, 115, 22, 0.45);
}

.film-card-grid .film-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    height: auto !important;
    background: #000;
}

.film-card-grid .film-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hdce-poster-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--hdce-gold);
    color: #111;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 3px;
}

.hdce-poster-imdb {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.75);
    color: var(--hdce-gold);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.film-info-grid {
    padding: 10px;
}

.hdce-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--hdce-muted);
    margin-bottom: 4px;
}

.hdce-card-lang {
    color: var(--hdce-orange);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.film-card-grid .film-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

.hdce-card-en {
    margin: 4px 0 0;
    font-size: 0.72rem;
    color: var(--hdce-gold);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Liste görünümü (kategori vb.) */
.film-card-list {
    border-bottom: 1px solid var(--hdce-border);
}

.film-card-list:hover {
    background: var(--hdce-surface);
}

/* Widget */
.widget {
    background: var(--hdce-surface);
    border: 1px solid var(--hdce-border);
    border-radius: 8px;
    margin-bottom: 16px;
}

.widget-title {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    border-bottom: 1px solid var(--hdce-border);
}

.btn-home,
.pagination .page-numbers.current,
.hdce-story-watch {
    background: var(--hdce-orange) !important;
    color: #fff !important;
    border: none !important;
}

.site-footer {
    background: var(--hdce-surface) !important;
    border-top: 1px solid var(--hdce-border);
}

.no-content {
    background: var(--hdce-surface);
    border: 1px solid var(--hdce-border);
    border-radius: 8px;
    padding: 24px;
}

@media (max-width: 1100px) {
    .film-grid-home {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .fhdi-header-nav-wrap {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hdce-header-search {
        width: min(200px, 50vw);
    }

    .content-area {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .film-grid-home {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .film-grid-home {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .fhdi-logo .site-title-text {
        font-size: 1rem;
    }

    .hdce-header-search {
        width: min(150px, 42vw);
    }

    .hdce-header-search .search-field {
        padding: 8px 6px;
        font-size: 0.78rem;
    }
}

@media (min-width: 901px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* === EMBED PLAYER === */
.hdce-embed-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--hdce-border);
}

.hdce-embed-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.hdce-embed-wrap-full .hdce-embed-iframe {
    position: fixed;
}

.video-wrapper-watch {
    margin-bottom: 16px;
}

/* === SIDEBAR WIDGETS === */
.hdce-widget {
    background: linear-gradient(180deg, var(--hdce-surface) 0%, #18181c 100%);
    border: 1px solid var(--hdce-border);
    border-radius: 12px;
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.hdce-widget .widget-title {
    margin: 0;
    padding: 14px 16px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 1px solid var(--hdce-border);
    background: rgba(249, 115, 22, 0.08);
}

.hdce-widget > *:not(.widget-title) {
    padding: 12px 14px 14px;
}

.sidebar-film-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-film-item {
    border-radius: 8px;
    transition: background 0.2s ease;
}

.sidebar-film-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-film-link {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-decoration: none;
}

.sidebar-film-poster {
    width: 72px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--hdce-border);
}

.sidebar-film-poster img {
    width: 72px;
    height: 108px;
    object-fit: cover;
    display: block;
}

.sidebar-film-title {
    margin: 0 0 6px;
    font-size: 0.84rem;
    line-height: 1.3;
    color: #fff;
}

.sidebar-film-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--hdce-muted);
}

.sidebar-film-imdb {
    color: var(--hdce-gold);
    font-weight: 700;
}

.hdce-genre-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hdce-genre-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--hdce-surface-2);
    border: 1px solid var(--hdce-border);
    color: #e4e4e7;
    font-size: 0.78rem;
    font-weight: 600;
}

.hdce-genre-chip span {
    color: var(--hdce-orange);
    font-size: 0.72rem;
}

.hdce-genre-chip:hover {
    color: #fff;
    border-color: rgba(249, 115, 22, 0.5);
}

.hdce-sidebar-nav .category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hdce-sidebar-nav .category-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hdce-sidebar-nav .category-list li:last-child {
    border-bottom: none;
}

.hdce-sidebar-nav a {
    display: block;
    padding: 10px 4px;
    color: #e4e4e7;
    font-size: 0.86rem;
    font-weight: 600;
}

.hdce-sidebar-search {
    display: flex;
    gap: 8px;
}

.hdce-sidebar-search input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--hdce-border);
    background: var(--hdce-surface-2);
    color: #fff;
    border-radius: 8px;
    padding: 10px 12px;
}

.hdce-sidebar-search button {
    border: none;
    background: var(--hdce-orange);
    color: #fff;
    border-radius: 8px;
    padding: 0 14px;
    font-weight: 700;
    cursor: pointer;
}

