/* ============================================================================
   Video News — YouTube-style detail + listing (Pembece soft-pink theme).
   Inherits the design tokens defined in style.css (--accent, --ink, --paper…).
   ============================================================================ */

.vd-page { max-width: var(--container); margin: 0 auto; padding: 0.5rem 0 2rem; }

.vd-breadcrumb { font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 0.75rem; }
.vd-breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.vd-breadcrumb a:hover { color: var(--accent-hover); }
.vd-breadcrumb .sep { margin: 0 0.4rem; color: var(--ink-faint); }

/* ── Top section: player + up-next rail ─────────────────────────────────── */
.vd-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.25rem;
    align-items: start;
}

.vd-player-col { min-width: 0; }

.vd-player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #120a0f;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.vd-player-wrap iframe,
.vd-player-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #120a0f;
}

/* Prev / next arrows overlaid on the player */
.vd-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 10, 15, 0.55);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    z-index: 3;
    transition: background 0.15s var(--ease), transform 0.15s var(--ease);
    backdrop-filter: blur(2px);
}
.vd-arrow:hover { background: var(--accent); transform: translateY(-50%) scale(1.08); }
.vd-arrow.prev { left: 12px; }
.vd-arrow.next { right: 12px; }
.vd-arrow svg { width: 26px; height: 26px; }
.vd-arrow-label {
    position: absolute;
    bottom: -1.4rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.68rem;
    white-space: nowrap;
    color: transparent;
}

/* ── Up-next rail ───────────────────────────────────────────────────────── */
.vd-rail { min-width: 0; }
.vd-rail-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.6rem;
    color: var(--ink-soft);
}
.vd-rail-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}
.vd-rail-item {
    display: grid;
    grid-template-columns: 148px 1fr;
    gap: 0.55rem;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius);
    padding: 4px;
    transition: background 0.15s var(--ease);
}
.vd-rail-item:hover { background: var(--accent-light); }
.vd-rail-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper-alt);
}
.vd-rail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vd-rail-meta { min-width: 0; display: flex; flex-direction: column; }
.vd-rail-item-title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vd-rail-item-cat { font-size: 0.72rem; color: var(--ink-muted); margin-top: 0.2rem; }

/* ── Title + share ──────────────────────────────────────────────────────── */
.vd-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 1.1rem 0 0.4rem;
}
.vd-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    line-height: 1.25;
    margin: 0;
    flex: 1;
    color: var(--ink);
}
.vd-meta { font-size: 0.82rem; color: var(--ink-muted); margin: 0.35rem 0 0; }
.vd-meta .vd-cat-pill {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent-hover);
    border-radius: 999px;
    padding: 2px 10px;
    margin-right: 0.5rem;
    font-weight: 600;
}
.vd-share-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s var(--ease);
}
.vd-share-btn:hover { background: var(--accent-hover); }
.vd-share-btn svg { width: 17px; height: 17px; }
.vd-share-btn.copied { background: #16a34a; }

/* ── Accordion description ──────────────────────────────────────────────── */
.vd-desc {
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    background: var(--paper);
    margin: 0.9rem 0 1.6rem;
    overflow: hidden;
}
.vd-desc > summary {
    list-style: none;
    cursor: pointer;
    padding: 0.85rem 1.1rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.vd-desc > summary::-webkit-details-marker { display: none; }
.vd-desc > summary .vd-chev { transition: transform 0.2s var(--ease); }
.vd-desc[open] > summary .vd-chev { transform: rotate(180deg); }
.vd-desc-body {
    padding: 0 1.1rem 1.1rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ink-soft);
    border-top: 1px solid var(--rule-light);
    padding-top: 0.9rem;
}
.vd-desc-body img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* ── Section headings ───────────────────────────────────────────────────── */
.vsection {
    margin: 2rem 0 0;
}
.vsection-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 0 0 1rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.vsection-title::before {
    content: "";
    width: 4px;
    height: 1.1rem;
    background: var(--accent);
    border-radius: 2px;
}
.vsection-title a { margin-left: auto; font-family: var(--font-body); font-size: 0.8rem; color: var(--accent-hover); text-decoration: none; font-weight: 600; }

/* ── Video card grids ───────────────────────────────────────────────────── */
.vgrid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.vgrid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.vcard { text-decoration: none; color: inherit; display: block; }
.vcard-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--paper-alt);
}
.vcard-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s var(--ease); }
.vcard:hover .vcard-thumb img { transform: scale(1.05); }
.vcard-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0.9;
}
.vcard-play svg { width: 44px; height: 44px; filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5)); }
.vcard-dur {
    position: absolute;
    right: 6px;
    bottom: 6px;
    background: rgba(20, 10, 15, 0.8);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
}
.vcard-title {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0.5rem 0 0.2rem;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vcard-meta { font-size: 0.75rem; color: var(--ink-muted); }

/* ── News cards (son haberler 4x4) reuse a compact card ─────────────────── */
.ncard { text-decoration: none; color: inherit; display: block; }
.ncard-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--paper-alt);
}
.ncard-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s var(--ease); }
.ncard:hover .ncard-thumb img { transform: scale(1.05); }
.ncard-cat {
    position: absolute; left: 6px; top: 6px;
    background: var(--accent); color: #fff;
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.02em;
    padding: 2px 7px; border-radius: 4px; text-transform: uppercase;
}
.ncard-title {
    font-size: 0.86rem; font-weight: 600; line-height: 1.35;
    margin: 0.5rem 0 0.2rem; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ncard-meta { font-size: 0.74rem; color: var(--ink-muted); }

/* ── Listing page ───────────────────────────────────────────────────────── */
.vlist-head { margin: 0.5rem 0 1.5rem; }
.vlist-head h1 { font-family: var(--font-display); font-size: 2rem; margin: 0 0 0.3rem; color: var(--ink); }
.vlist-head p { color: var(--ink-muted); margin: 0; }
.vlist-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.vlist-empty { text-align: center; color: var(--ink-muted); padding: 4rem 1rem; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .vd-top { grid-template-columns: 1fr; }
    .vd-rail-list {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 6px;
    }
    .vd-rail-item { grid-template-columns: 1fr; width: 200px; flex: none; }
    .vgrid-4, .vlist-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
    .vd-title { font-size: 1.3rem; }
    .vgrid-3, .vgrid-4, .vlist-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .vd-arrow { width: 40px; height: 40px; }
    .vd-arrow svg { width: 22px; height: 22px; }
}
