/* ── Header ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.site-header .inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

@media(min-width:1024px) {
    .site-header .inner {
        height: 80px;
        padding: 0 2rem;
    }
}

.nav-link-custom {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: color .15s, background .15s;
    white-space: nowrap;
}

.nav-link-custom:hover {
    color: #f54342;
    background: #fff0f0;
}

.btn-login {
    display: none;
    padding: 10px 20px;
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    background: #374151;
    border-radius: 8px;
    text-decoration: none;
    border: none;
}

.btn-login:hover {
    background: #1f2937;
    color: #fff;
}

@media(min-width:576px) {
    .btn-login {
        display: inline-flex;
    }
}

.btn-subscribe {
    display: none;
    padding: 10px 20px;
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    background: #f54342;
    border-radius: 8px;
    text-decoration: none;
    border: none;
}

.btn-subscribe:hover {
    background: #d93a39;
    color: #fff;
}

@media(min-width:576px) {
    .btn-subscribe {
        display: inline-flex;
    }
}

.btn-hamburger {
    display: inline-flex;
    padding: 8px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.btn-hamburger:hover {
    background: rgba(0, 0, 0, 0.05);
}

@media(min-width:1024px) {
    .btn-hamburger {
        display: none;
    }
}

/* ── Main ── */
main {
    padding-top: 80px;
}

/* ── Page header ── */
.page-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 40px 0 56px;
}

.page-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media(min-width:1024px) {
    .page-header-inner {
        padding: 0 2rem;
    }
}

.page-header h1 {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-weight: 900;
    color: #111827;
    letter-spacing: -.02em;
    margin: 0;
}

.page-header p {
    color: #6b7280;
    font-size: 1rem;
    margin-top: 8px;
    margin-bottom: 0;
}

/* ── Breadcrumb ── */
.ar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .875rem;
    color: #6b7280;
    margin-bottom: 24px;
}

.ar-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    text-decoration: none;
    transition: color .2s;
}

.ar-breadcrumb a:hover {
    color: #f54342;
}

.ar-breadcrumb .crumb-sep {
    color: #d1d5db;
}

.ar-breadcrumb .crumb-current {
    color: #111827;
    font-weight: 500;
}

/* ── Filter pills ── */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

.filter-pill {
    padding: 8px 16px;
    border-radius: 12px;
    font-size: .875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all .2s;
    background: #f3f4f6;
    color: #4b5563;
}

.filter-pill:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.filter-pill.active {
    background: #f54342;
    color: #fff;
}

/* ── Clips grid ── */
.clips-content {
    padding: 40px 0 56px;
}

.clips-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media(min-width:1024px) {
    .clips-inner {
        padding: 0 2rem;
    }
}

.clips-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media(min-width:576px) {
    .clips-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(min-width:1024px) {
    .clips-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ── Empty state ── */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 0;
    color: #9ca3af;
    display: none;
}

.empty-state p {
    font-size: 1rem;
    margin: 8px 0 0;
}

/* ── Clip card ── */
.clip-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: border-color .3s, box-shadow .3s;
    cursor: pointer;
}

.clip-card:hover {
    border-color: rgba(245, 67, 66, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* hide/show via filter */
.clip-item {
    display: block;
}

.clip-item.hidden {
    display: none;
}

/* 16:9 thumb */
.clip-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.clip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.clip-card:hover .clip-thumb img {
    transform: scale(1.05);
}

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: background .2s;
}

.clip-card:hover .thumb-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(245, 67, 66, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .8;
    transition: opacity .2s, transform .2s;
}

.clip-card:hover .play-circle {
    opacity: 1;
    transform: scale(1.1);
}

.clip-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: .75rem;
    font-weight: 500;
}

/* card body */
.clip-body {
    padding: 16px;
}

.clip-body h3 {
    font-weight: 600;
    color: #111827;
    font-size: .875rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    transition: color .2s;
    line-height: 1.4;
}

.clip-card:hover .clip-body h3 {
    color: #f54342;
}

.clip-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    font-size: .75rem;
    color: #6b7280;
}

.clip-meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
}

.clip-meta .views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}