/* PromKing Tube — Dark zinc/red theme matching TubeHub design */

:root {
    --pkt-bg:         #09090b;
    --pkt-surface:    #18181b;
    --pkt-border:     #27272a;
    --pkt-text:       #fafafa;
    --pkt-muted:      #a1a1aa;
    --pkt-accent:     #ef4444;
    --pkt-accent-h:   #dc2626;
    --pkt-pill-bg:    #27272a;
    --pkt-pill-act:   #ef4444;
    --pkt-radius:     8px;
}

/* ── Page wrappers ─────────────────────────────────────────────────────── */
.pkt-archive-page,
.pkt-watch-page {
    background: var(--pkt-bg);
    color: var(--pkt-text);
    min-height: 100vh;
    padding: 24px 16px 48px;
    max-width: 1280px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Banner ad ─────────────────────────────────────────────────────────── */
.pkt-ad-banner {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    background: var(--pkt-surface);
    border: 1px solid var(--pkt-border);
    border-radius: var(--pkt-radius);
    padding: 12px;
    overflow: hidden;
}

/* ── Category pills ────────────────────────────────────────────────────── */
.pkt-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.pkt-pill {
    background: var(--pkt-pill-bg);
    color: var(--pkt-muted);
    border: 1px solid var(--pkt-border);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.pkt-pill:hover,
.pkt-pill-active {
    background: var(--pkt-pill-act);
    color: #fff;
    border-color: var(--pkt-pill-act);
}

/* ── Archive layout (grid + sidebar) ───────────────────────────────────── */
.pkt-archive-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) {
    .pkt-archive-layout { grid-template-columns: 1fr; }
    .pkt-archive-sidebar { display: none; }
}

/* ── Video grid ────────────────────────────────────────────────────────── */
.pkt-grid {
    display: grid;
    gap: 16px;
}
.pkt-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pkt-grid-4 { grid-template-columns: repeat(4, 1fr); }
.pkt-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
    .pkt-grid-3,
    .pkt-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .pkt-grid-3,
    .pkt-grid-4,
    .pkt-grid-2 { grid-template-columns: 1fr; }
}

/* ── Video card ────────────────────────────────────────────────────────── */
.pkt-card {
    background: var(--pkt-surface);
    border: 1px solid var(--pkt-border);
    border-radius: var(--pkt-radius);
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.pkt-card:hover {
    border-color: var(--pkt-accent);
    transform: translateY(-2px);
}
.pkt-card-thumb {
    display: block;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}
.pkt-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}
.pkt-card-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}
.pkt-duration,
.pkt-play-overlay {
    z-index: 2;
}
.pkt-card:hover .pkt-card-thumb img { opacity: 0.85; }
.pkt-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--pkt-border);
}
.pkt-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}
.pkt-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease;
    background: rgba(0,0,0,0.3);
}
.pkt-card:hover .pkt-play-overlay { opacity: 1; }
.pkt-play-icon {
    color: #fff;
    font-size: 28px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.pkt-card-info {
    padding: 10px 12px 12px;
}
.pkt-card-title {
    display: block;
    color: var(--pkt-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    text-decoration: none;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.pkt-card-title:hover { color: var(--pkt-accent); }
.pkt-card-meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: var(--pkt-muted);
}
.pkt-card-cat {
    color: var(--pkt-accent);
    font-weight: 500;
}
.pkt-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--pkt-muted);
    padding: 48px 0;
    font-size: 15px;
}

/* ── Pagination ────────────────────────────────────────────────────────── */
.pkt-pagination {
    margin-top: 32px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.pkt-pagination .page-numbers {
    background: var(--pkt-surface);
    color: var(--pkt-text);
    border: 1px solid var(--pkt-border);
    border-radius: var(--pkt-radius);
    padding: 8px 14px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.15s ease;
}
.pkt-pagination .page-numbers.current,
.pkt-pagination .page-numbers:hover {
    background: var(--pkt-accent);
    border-color: var(--pkt-accent);
    color: #fff;
}

/* ── Category heading ──────────────────────────────────────────────────── */
.pkt-cat-heading {
    color: var(--pkt-text);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ── Sidebar widget ────────────────────────────────────────────────────── */
.pkt-sidebar-widget {
    background: var(--pkt-surface);
    border: 1px solid var(--pkt-border);
    border-radius: var(--pkt-radius);
    overflow: hidden;
    margin-bottom: 20px;
}
.pkt-sidebar-title {
    background: var(--pkt-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Watch page layout ─────────────────────────────────────────────────── */
.pkt-watch-page {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

/* ── Additional ad slots ───────────────────────────────────────────────── */
.pkt-ad-below-embed {
    margin: 14px 0 18px;
    background: var(--pkt-surface);
    border: 1px solid var(--pkt-border);
    border-radius: var(--pkt-radius);
    padding: 12px;
    overflow: hidden;
}
.pkt-card-ad {
    background: transparent;
    border: 0;
    padding: 0;
}
@media (max-width: 900px) {
    .pkt-watch-page {
        grid-template-columns: 1fr;
    }
    .pkt-watch-sidebar { display: none; }
}

/* ── Video embed ───────────────────────────────────────────────────────── */
.pkt-embed-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--pkt-radius);
    overflow: hidden;
    margin-bottom: 16px;
}
.pkt-embed-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Watch info ────────────────────────────────────────────────────────── */
.pkt-watch-title {
    color: var(--pkt-text);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}
.pkt-watch-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--pkt-muted);
    margin-bottom: 16px;
}
.pkt-meta-cat {
    color: var(--pkt-accent);
    font-weight: 600;
    text-decoration: none;
}
.pkt-meta-cat:hover { text-decoration: underline; }

/* ── CTA button ────────────────────────────────────────────────────────── */
.pkt-cta-bar {
    margin-bottom: 20px;
}
.pkt-cta-btn {
    display: inline-block;
    background: var(--pkt-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.1s ease;
    box-shadow: 0 4px 16px rgba(239,68,68,0.35);
}
.pkt-cta-btn:hover {
    background: var(--pkt-accent-h);
    transform: translateY(-1px);
    color: #fff;
}

/* ── Watch description ─────────────────────────────────────────────────── */
.pkt-watch-description {
    color: var(--pkt-muted);
    font-size: 14px;
    line-height: 1.7;
    background: var(--pkt-surface);
    border: 1px solid var(--pkt-border);
    border-radius: var(--pkt-radius);
    padding: 16px;
}

/* ── Related videos ────────────────────────────────────────────────────── */
.pkt-related-title {
    color: var(--pkt-text);
    font-size: 14px;
    font-weight: 700;
    padding: 12px;
    margin: 0;
    border-bottom: 1px solid var(--pkt-border);
}
.pkt-related-card {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    border-bottom: 1px solid var(--pkt-border);
    transition: background 0.12s ease;
}
.pkt-related-card:hover { background: rgba(255,255,255,0.04); }
.pkt-related-thumb {
    position: relative;
    width: 100px;
    aspect-ratio: 16/9;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}
.pkt-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pkt-related-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--pkt-border);
}
.pkt-related-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}
.pkt-related-card-title {
    color: var(--pkt-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.pkt-related-views {
    color: var(--pkt-muted);
    font-size: 11px;
}

/* Hide WordPress Skip to Content */
.skip-link, .skip-to-content, a.skip-link, a.screen-reader-text.skip-link { display: none !important; }
