@font-face {
    font-display: swap;
    font-family: PlexCircular;
    font-style: normal;
    font-weight: 700;
    src: url(/assets/fonts/PlexCircular.woff2) format("woff2")
}

:root {
    --primary-color: #d7a30f;
    --bg-dark: #141414;
    --bg-darker: #0c0c0c;
    --text-primary: #fff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    --araRenk: #d7a30f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: #000;
    color: var(--text-primary);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =====================
 * HOME CONTENT TABS + PROGRAM GRID
 * ===================== */
.home-tabs {
    /* position: absolute; */
    display: flex;
    gap: 15px;
    padding: 0 20px 20px;
    box-sizing: border-box;
    top: 0;
    z-index: 100;
    /* background-color: blue; */
}


.home-tab-btn {
    background: transparent;
    border: unset;
    border-bottom: 3px solid #d7a30f00;
    color: #ffffff;
    padding: 10px 14px 7px;
    font-weight: 800;
    letter-spacing: .2px;
    cursor: pointer;
}
.home-tab-btn.is-active {
    background: rgb(255 255 255 / 0%);
    border-color: var(--araRenk);
    color: var(--araRenk);
}

.home-tab-panel{ display:none; }
.home-tab-panel.is-active{ display:block; }

.program-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    padding: 22px 18px 28px 18px;
    box-sizing: border-box;
}

.program-grid-empty{
  color: rgba(255,255,255,0.75);
  padding: 26px 6px;
  font-weight: 700;
}

.program-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    /* background: rgba(255,255,255,0.06); */
    /* border: 1px solid rgba(255,255,255,0.10); */
    transform: translateZ(0);
}

.program-card-media {
    position: relative;
    aspect-ratio: 3/4.3;
    background: rgba(0,0,0,0.25);
    border-radius: 12px;
    overflow: hidden;
}
.program-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: .5s;
    border-radius: 12px;
}
.program-card-media img:hover {
    width: 110%;
    height: 110%;
    object-position: center;
}
.program-card-badge {
    position: absolute;
    left: 5px;
    bottom: 5px;
    background: rgb(0 0 0 / 72%);
    /* border: 1px solid rgba(255,255,255,0.20); */
    color: #fff;
    padding: 4px 7px;
    border-radius: 7px;
    font-weight: 400;
    font-size: 13px;
    box-shadow: 0 0 10px #00000078;
    backdrop-filter: blur(6px);
}

.program-card-title {
    padding: 12px 14px 5px 14px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    font-size: 15px;
    /* white-space: nowrap; */
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    /* display: none; */
}
.films-header {
    padding: 40px 74px 0;
}


/* HAMBURGER MENÜ BUTONU */
.hamburger-btn {
    position: fixed;
    top: 36px;
    left: 15px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    background: rgb(0 0 0 / 34%);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger-btn:active {
    transform: scale(0.95);
}

.hamburger-btn span {
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* SIDEBAR OVERLAY */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 93vw;
    background: rgb(39 39 39 / 55%);
    backdrop-filter: blur(15px);
    /* border-right: 1px solid rgba(255, 255, 255, 0.1); */
    padding: 35px 20px 20px;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: end;
}

.logo-mark {
    width: 48px;
    height: 45px;
    border-radius: 8px;
    background: linear-gradient(135deg, #09191e, #02161b);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-mark img {
    width: 100%;
    height: auto;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    background: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sidebar-item:active {
    transform: scale(0.98);
}

.sidebar-item.is-active {
    background: rgb(255 255 255);
    color: #000000;
}

.sidebar-item .icon {
    width: 24px;
    font-size: 20px;
    display: flex;
    justify-content: center;
}

.sidebar-item .label {
    flex: 1;
    white-space: nowrap;
}

/* Canlı yayın için özel link stili */
.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    width: 100%;
}

.sidebar-category-item.canli {
    background: linear-gradient(135deg, #c40808, #ff0000);
    color: white;
    font-weight: 600;
}

/* PAGE CONTENT */
.page-content {
    width: 100%;
    min-height: 100vh;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    margin-bottom: 30px;
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 20px;
}

.hero-title {
    font-size: clamp(24px, 6vw, 36px);
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 90%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-play,
.btn-info,
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-play {
    background: white;
    color: black;
}

.btn-play:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.9);
}

.btn-info,
.hero-btn {
    background: rgba(109, 109, 110, 0.7);
    color: white;
}

.btn-info:active,
.hero-btn:active {
    transform: scale(0.95);
    background: rgba(109, 109, 110, 0.5);
}

/* VIDEO ROWS */
.video-row {
    margin-bottom: 3.5rem;
    position: relative;
}

.row-title {
    font-size: 20px;
    padding-left: 20px;
    font-weight: 600;
    /* border-bottom: 3px solid rgba(229, 9, 20, 0.6); */
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
}
.tumunu_goster small {
    display: none;
    font-weight: 200;
    font-size: 18px;
}
.tumunu_goster:hover {
    cursor: pointer;
}
.tumunu_goster:hover small {
    display: block;
}
/* VIDEO SLIDER */
.video-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0; /* Tüm padding'i kaldır */
    scroll-padding: 20px; /* Scroll snap için boşluk */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
}

/* İlk öğeye sol margin */
.video-slider .video-item:first-child {
    margin-left: 20px;
}

/* Son öğeye sağ margin */
.video-slider .video-item:last-child {
    margin-right: 20px;
}
.video-slider::-webkit-scrollbar {
    display: none;
}

.video-item {
    flex: 0 0 auto;
    width: 270px;
    cursor: pointer;
    transition: transform 0.2s ease;
    scroll-snap-align: start;
    position: relative;
}

.video-item:active {
    transform: scale(0.95);
}

.video-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-item-info {
    padding: 8px 4px;
}

.video-item-title {
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-item-title span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    display: block;
}

.video-item-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

/* VIDEO PROGRESS */
.video-item-progress {
    position: absolute;
    bottom: 9px;
    left: 0px;
    right: 0;
    /* padding: 8px; */
    /* background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); */
    display: flex;
    align-items: center;
    /* gap: 6px; */
    /* font-size: 11px; */
    overflow: hidden;
}

.video-item-progress .progress-bg {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0px 0px 8px 8px;
    overflow: hidden;
}

.video-item-progress .progress-fill {
    height: 100%;
    background: var(--araRenk);
}

/* PROGRAM DETAIL */
.program-hero {
    position: relative;
    height: 50vh;
    min-height: 350px;
    overflow: hidden;
    margin-bottom: 20px;
}

.program-hero-bg img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    mask-image: radial-gradient(circle at right center, black 68%, transparent 92%), radial-gradient(circle at left bottom, black 84%, transparent 99%), linear-gradient(black 70%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-image: radial-gradient(circle at right center, black 68%, transparent 92%), radial-gradient(circle at left bottom, black 84%, transparent 99%), linear-gradient(black 70%, transparent 100%);
    -webkit-mask-composite: source-in;
    transition: opacity 0.3s ease;
}

.program-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    z-index: 2;
}

.program-meta-top {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.program-title {
    font-size: clamp(20px, 5vw, 32px);
    font-weight: 700;
    margin-bottom: 12px;
}

.program-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.watch-progress {
    margin-bottom: 16px;
}

.watch-progress-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.watch-progress-bar {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.watch-progress-inner {
    position: absolute;
    inset: 0;
    width: 0;
    background: var(--primary-color);
}

.program-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.program-sections {
    padding: 0 0 30px 0;
}

/* SEARCH PAGE */
.search-header {
    margin-bottom: 20px;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 16px;
}

.search-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.search-results-grid .video-item {
    width: 100%;
}

.search-results-grid .video-item img {
    aspect-ratio: 16 / 9;
}

.search-empty,
.search-error {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
}

/* LOADING */
.content-loading {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.content-loading[hidden] {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* HERO CAROUSEL */
.carousel {
    position: relative;
}

.carousel-slide {
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

.BG {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, black, #020b1bf7);
    z-index: -5;
    position: fixed;
    left: 0;
    top: 0;
}




.program-detail-page {
    min-height: 100vh;
    color: #fff;
    position: relative;
}

/* Hero poster için scroll efekti */
.program-hero-poster {
    position: sticky;
    top: 0px;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    overflow: hidden;
    z-index: 0;
}
.program-hero-poster img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    /* max-height: 520px; */
    object-fit: cover;
    object-position: top;
    mask-image: linear-gradient(black 60%, transparent 95%);
    mask-composite: intersect;
    -webkit-mask-image: linear-gradient(black 88%, transparent 99%);
    -webkit-mask-composite: source-in;
    transition: opacity 0.3s ease;
}

/* Content sabit kalmalı */
.program-detail-content {
    position: relative;
    padding: 0px 20px 40px;
    margin-top: 0px;
    z-index: 2;
}

.program-detail-title {
    font-size: clamp(24px, 6vw, 40px);
    font-weight: 700;
    margin-bottom: 0px;
    text-shadow: 2px 2px 8px rgb(0 0 0 / 19%);
    letter-spacing: 1px;
    line-height: normal;
    text-align: center;
    font-family: "PlexCircular", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.program-detail-bolum {
    font-size: clamp(20px, 5vw, 36px);
    /* font-weight: 100; */
    margin-bottom: 16px;
    /* text-shadow: 2px 2px 8px rgb(0 0 0 / 29%); */
    letter-spacing: -0.5px;
    color: #b78b07;
    text-align: center;
    font-family: "PlexCircular", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.season-selector {
    margin-bottom: 20px;
}

.season-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    cursor: pointer;
}

.season-btn i {
    font-size: 14px;
}

.btn-watch-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 3px;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.btn-watch-main:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.85);
}

.btn-watch-main i {
    font-size: 24px;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 8px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    aspect-ratio: 1;
    width: 70px;
    height: 70px;
}

.action-btn:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
}

.action-btn i {
    font-size: 24px;
}

.action-btn span {
    display: block;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.episodes-count {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.episode-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.episode-item:active {
    opacity: 0.7;
}

.episode-thumbnail {
    position: relative;
    width: 140px;
    flex-shrink: 0;
}

.episode-thumbnail img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
}

.episode-number {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.episode-progress-bar {
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    height: 3px;
    background: rgb(255 255 255 / 48%);
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    z-index: 2;
}
.episode-progress-bar-big {
    position: relative;
    bottom: 6px;
    left: 0;
    right: 0;
    height: 5px;
    background: rgb(255 255 255 / 53%);
    border-radius: 24px;
    overflow: hidden;
    z-index: 2;
}

.episode-progress-fill, .episode-progress-fill-big {
    height: 100%;
    background: var(--araRenk);
    transition: width 0.3s ease;
}
.watch-progress-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    text-align: center;
}
.episode-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.episode-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: -2px;
}

.episode-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
}
.episode-meta-big {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    padding: 3px 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top_bar {
    background-color: #00000021;
    width: 100%;
    height: 30px;
    backdrop-filter: blur(25px);
    position: fixed;
    z-index: 1000;
}

/* AUTH PAGES */
body.auth-body {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px;    
    height: auto;
}

.auth-box {
    width: 100%;
    max-width: 400px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.auth-box h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}

.auth-box label {
    display: block;
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: 500;
}

.auth-box input[type="text"], .auth-box input[type="email"], .auth-box input[type="password"], .auth-box input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    margin-top: 6px;
    transition: all 0.2s ease;
}

.auth-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s ease;
}

.btn-primary:active {
    transform: scale(0.98);
    background: #c40808;
}

.auth-error,
.auth-success {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.auth-error {
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid rgba(229, 9, 20, 0.5);
}

.auth-success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:active {
    opacity: 0.8;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin: 12px 0;
}

.remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.device-code-input {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 20px !important;
    font-weight: 700;
}

.hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* UTILITY */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
.heroUrl{
    display: inline;
}
.heroUrl_tv{
    display: none;
}

.slider_left_btn,
.slider_right_btn{
    position: absolute;
    top: 52px;
    height: 234px;
    display: flex;
    align-items: center;
    font-size: 50px;
    z-index: 5;
    pointer-events: auto;
}

.slider_left_btn{
    left: 0;
    background: linear-gradient(90deg, #0000009e, transparent);
}

.slider_right_btn{
    right: 0;
    background: linear-gradient(-90deg, #0000009e, transparent);
}

.slider_left_btn, 
.slider_right_btn {
    display: none;
}
.slider_left_btn:hover, 
.slider_right_btn:hover {
    cursor: pointer;
    opacity: .8;
}
.menuIsim{
    display: none;
}

.video-row.deger{
    padding-top: 61px;
}
.row-title.deger{
    padding-left: 70px;
}
/* RESPONSIVE - TABLET */
@media (min-width: 768px) {
    body.auth-body {
        align-items: center;
        padding: 20px;
    }
    
    .video-row.deger{
        padding-top: 43px;
    }
    .row-title.deger{
        padding-left: 75px;
    }
    .program-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .auth-box {
        padding: 30px;
    }
    .hamburger-btn {
        top: 20px;
        left: 20px;
    }

    .hero {
        height: 70vh;
    }

    .hero-content {
        padding: 40px;
    }

    .hero-description {
        max-width: 60%;
    }

    .video-slider {
        padding: 0 40px 20px 0;
    }

    .video-item {
        width: 300px;
    }

    .video-item img {
        aspect-ratio: 16 / 9;
    }

    .row-title {
        font-size: 24px;
    }

    .search-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }

    .heroUrl{
        display: none;
    }
    .heroUrl_tv{
        display: inline;
    }
    .program-hero-poster img{
        aspect-ratio: 16/9;
    }
    .program-hero {
        height: 60vh;
    }

    .program-hero-content {
        padding: 40px;
    }

    .program-detail-content {
        padding: 0 40px 60px;    
    }

    .action-buttons {
        justify-content: flex-start;
        gap: 16px;
    }

    .action-btn {
        flex: 0;
        width: 80px;
        height: 80px;
    }

    .episode-thumbnail {
        width: 160px;
    }

    .episodes-list {
        gap: 20px;
    }
    .films-header {
        padding: 25px 74px 0;
    }
}

/* RESPONSIVE - DESKTOP */
@media (min-width: 1024px) {
    .hamburger-btn {
        left: 15px;
    }
    .row-title.deger{
        padding-left: 25px;
    }
    .films-header {
        padding: 25px 25px 0;
    }
    .program-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .top_bar{
        display: none;
    }
    .sidebar-overlay {
        background: rgba(0, 0, 0, 0);
    }
    .sidebar{        
        width: 71px;
        padding: 20px 10px 20px;
        transform: translateX(0);
        box-shadow: 0 0 20px #0000009e;
        overflow: visible;
    }
.sidebar.active {
    width: 266px;
}
.sidebar.active .sidebar-item .label {
    display: block;
}
.sidebar.active .logo{
    opacity: 1;
}
.logo{
    opacity: 0;
}
.sidebar-item .label {
    flex: 1;
    white-space: nowrap;
    display: none;
}
.sidebar-item {    
    position: relative;
}

.sidebar:not(.active) .sidebar-item:hover .menuIsim {
    position: absolute;
    display: block;
    white-space: nowrap;
    left: 62px;
    background-color: #333333;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 0 10px #00000082;
    color: var(--text-primary);
    font-weight: 400;
}
.menuIsim::after {
    content: " ";
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -7px;
    border-width: 7px;
    border-style: solid;
    border-color: transparent #333333 transparent transparent;
}

/* Sidebar aktifken ise hover durumunu iptal et (isteğe bağlı) */
.sidebar.active .sidebar-item:hover .menuIsim {
  display: none !important;
}

.page-content {
    width: calc(100% - 70px);
    min-height: 100vh;
    float: right;
}

    .slider_left_btn, 
    .slider_right_btn {
        display: flex;
    }
    .program-hero-poster {
        display: flex;
        justify-content: center;
    }
    .program-hero-poster img {
        width: auto;
        max-height: 50vh;
        mask-image: radial-gradient(circle at right center, black 74%, transparent 96%), radial-gradient(circle at left center, black 74%, transparent 96%), linear-gradient(black 70%, transparent 100%);
        mask-composite: intersect;
        -webkit-mask-image: radial-gradient(circle at right center, black 74%, transparent 96%), radial-gradient(circle at left center, black 74%, transparent 96%), linear-gradient(black 70%, transparent 100%);
        -webkit-mask-composite: source-in;
        transition: opacity 0.3s ease;
    }
    .program-detail-content {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;    
    }

    .episode-thumbnail {
        width: 180px;
    }
    .video-row {
        margin-bottom: 1.5rem;
    }
    .video-item {
        width: 415px;
    }

    .video-item img {
        aspect-ratio: 16 / 9;
    }

    .search-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 24px;
    }
}


@media (min-width: 1280px) {

    .program-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1536px) {
    .program-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}