:root {
    --bg: #050509;
    --bg-card: #11111a;
    --border: #262637;
    --text: #f5f5ff;
    --muted: #a3a3c4;
    --accent: #e50977;
    --radius: 12px;
}

/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

body {
    padding-top: 52px;
}

/* HEADER */
.top-bar {
    position: fixed;
    inset: 0 0 auto 0;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5,5,9,.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    z-index: 20;
}

.logo {
    font-weight: 700;
    letter-spacing: .18em;
    font-size: .95rem;
}

/* PAGE */
.page {
    max-width: 480px;
    margin: 0 auto;
    padding: 12px 12px 90px;
}

/* VIDEO LIST */
.video-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 8px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.video-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.6);
}

.video-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* THUMB */
.video-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #202031;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .2s ease;
}

.video-item:hover .video-thumb img {
    opacity: .75;
}

.play-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #fff;
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
}

.video-item:hover .play-badge {
    opacity: .85;
}

/* TEXT */
.video-title {
    margin-top: 6px;
    font-size: .95rem;
    font-weight: 600;
}

.video-meta,
.video-desc {
    font-size: .8rem;
    color: var(--muted);
}

/* PAGINATION */
.pagination {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 32px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pager-btn {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #090915;
    color: var(--text);
    font-size: .8rem;
}

.pager-btn:disabled {
    opacity: .4;
}

/* FOOTER */
.footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 6px;
    text-align: center;
    font-size: .74rem;
    color: var(--muted);
}

/* BUTTONS */
.btn-primary,
.btn-secondary {
    border-radius: 999px;
    padding: 7px 16px;
    font-size: .9rem;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
}

/* 🔞 AGE GATE – KRİTİK DÜZELTME */
.age-gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,8,.96);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;

    /* 🔥 BUNLAR ÖNEMLİ */
    pointer-events: auto;
    opacity: 1;
    transition: opacity .25s ease;
}

.age-gate-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.age-gate-box {
    max-width: 360px;
    width: calc(100% - 40px);
    background: #10101b;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 18px 16px 14px;
    text-align: center;

    pointer-events: auto;
}

.age-gate-box h1 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.age-gate-box p {
    font-size: .9rem;
    color: var(--muted);
    margin-bottom: 14px;
}

.age-gate-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* DETAIL */
.detail-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 10px;
    margin-bottom: 14px;
}

.detail-video video {
    width: 100%;
    border-radius: 8px;
    background: #000;
}

/* RESPONSIVE */
@media (min-width: 600px) {
    .page {
        max-width: 540px;
    }
}
