/* ============================================================================
   AXADLE DIRECT — shared hero + content-row + card styles.
   Extracted from the homepage base skin so Movies / TV-Series browse pages
   render identically. (The homepage layers an extra "premium home skin" on top
   of these base rules; browse pages intentionally use only the base look.)
   ========================================================================== */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.ax-hero { position: relative; height: 90vh; min-height: 560px; overflow: hidden; }
.hero-swiper, .hero-swiper .swiper-wrapper, .hero-swiper .swiper-slide { height: 100%; }
.ax-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center top; transition: transform 8s ease-out; }
.hero-swiper .swiper-slide-active .ax-hero-bg { transform: scale(1.05); }
.ax-hero-gradient {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(5,10,20,.95) 30%, rgba(5,10,20,.5) 70%, rgba(5,10,20,.15) 100%),
                linear-gradient(to top, rgba(5,10,20,.9) 0%, transparent 50%);
}
.ax-hero-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.ax-hero-inner { max-width: 580px; padding: 80px 0 60px; }
.ax-hero-badge { display: inline-flex; align-items: center; background: rgba(245,197,24,.15); border: 1px solid rgba(245,197,24,.3); color: #f5c518; font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-bottom: 16px; letter-spacing: .5px; text-transform: uppercase; }
.ax-hero-title { font-size: clamp(28px, 5vw, 52px); font-weight: 800; line-height: 1.1; margin: 0 0 12px; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.ax-hero-tagline { font-size: 14px; color: #a0aec0; font-style: italic; margin: 0 0 14px; }
.ax-hero-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ax-hero-meta-item { font-size: 13px; color: #cbd5e0; display: flex; align-items: center; }
.ax-hero-meta-item + .ax-hero-meta-item::before { content: '•'; margin-right: 12px; color: #4a5568; }
.ax-age-badge { border: 1px solid #4a5568; padding: 1px 7px; border-radius: 4px; font-size: 11px; }
.ax-hero-desc { font-size: 14px; color: #a0aec0; line-height: 1.7; margin: 0 0 24px; }
.ax-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-swiper-pagination { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 6px; }
.hero-swiper-pagination .swiper-pagination-bullet { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.4); transition: all .3s; }
.hero-swiper-pagination .swiper-pagination-bullet-active { width: 24px; background: #FF2A2A; }

.hero-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; backdrop-filter: blur(8px); }
.hero-nav-btn:hover { background: rgba(255,42,42,.25); border-color: #FF2A2A; }
.hero-nav-prev { left: 20px; }
.hero-nav-next { right: 20px; }

/* ── OTT gutter token ─────────────────────────────────────────────────── */
:root { --ax-gutter: clamp(16px, 3vw, 48px); }

/* ── Section ──────────────────────────────────────────────────────────── */
.ax-section { padding: 36px 0 0; }
.ax-row-header { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--ax-gutter); margin-bottom: 16px; }
.ax-section-title { font-size: 20px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 10px; }
.ax-title-accent { display: inline-block; width: 4px; height: 20px; background: linear-gradient(180deg,#FF2A2A,#E11D48); border-radius: 2px; flex-shrink: 0; }
.ax-section-more { font-size: 13px; color: #FF2A2A; text-decoration: none; display: flex; align-items: center; gap: 4px; transition: opacity .2s; white-space: nowrap; }
.ax-section-more:hover { opacity: .75; color: #FF2A2A; }

/* ── Content Swiper — edge-to-edge with left gutter ──────────────────── */
.ax-row-carousel { position: relative; }
.content-swiper { padding-left: var(--ax-gutter) !important; overflow: visible !important; }
.content-swiper .swiper-wrapper { padding-bottom: 6px; }

.ax-row-nav {
    position: absolute;
    top: 50%;
    z-index: 12;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(17,24,39,.84);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    box-shadow: 0 12px 32px rgba(0,0,0,.38);
    backdrop-filter: blur(12px);
    transition: background .18s, border-color .18s, opacity .18s, transform .18s;
}
.ax-row-nav:hover {
    background: rgba(255,42,42,.24);
    border-color: #FF2A2A;
    transform: translateY(-50%) scale(1.04);
}
.ax-row-nav.swiper-button-disabled {
    opacity: .28;
    cursor: default;
    pointer-events: none;
}
.ax-row-nav-prev { left: 18px; }
.ax-row-nav-next { right: 18px; }
.ax-row-carousel::before,
.ax-row-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 86px;
    z-index: 11;
    pointer-events: none;
}
.ax-row-carousel::before { left: 0; background: linear-gradient(to right,#030712 0%,rgba(7,12,24,.72) 38%,transparent 100%); }
.ax-row-carousel::after { right: 0; background: linear-gradient(to left,#030712 0%,rgba(7,12,24,.72) 38%,transparent 100%); }

/* ── Content Card ─────────────────────────────────────────────────────── */
.ax-content-card { position: relative; border-radius: 10px; overflow: hidden; background: #111827; cursor: pointer; transition: transform .25s, box-shadow .25s; }
.ax-content-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 16px 40px rgba(0,0,0,.6); z-index: 2; }
.ax-content-card .ax-card-poster { aspect-ratio: 2/3; width: 100%; object-fit: cover; display: block; }
.ax-content-card .ax-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.9) 0%, transparent 55%); opacity: 0; transition: opacity .25s; }
.ax-content-card:hover .ax-card-overlay { opacity: 1; }
.ax-content-card .ax-card-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 52px; height: 52px; background: rgba(255,42,42,.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; opacity: 0; transition: opacity .25s, transform .25s; }
.ax-content-card:hover .ax-card-play { opacity: 1; transform: translate(-50%,-50%) scale(1.1); }
.ax-content-card .ax-card-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px; opacity: 0; transition: opacity .2s; }
.ax-content-card:hover .ax-card-info { opacity: 1; }
.ax-content-card .ax-card-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.ax-content-card .ax-card-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #9ca3af; }
.ax-card-rating { color: #f5c518 !important; display: flex; align-items: center; gap: 3px; }
.ax-card-quality { background: rgba(255,42,42,.15); border: 1px solid rgba(255,42,42,.3); color: #FF2A2A; font-size: 10px; padding: 1px 5px; border-radius: 3px; font-weight: 600; }
.ax-card-badge { position: absolute; top: 8px; left: 8px; background: #FF2A2A; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; text-transform: uppercase; }
.ax-card-badge.premium { background: #f5c518; color: #030712; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn-ax { display: inline-flex; align-items: center; justify-content: center; font-family: 'Outfit', sans-serif; font-weight: 600; border-radius: 10px; text-decoration: none; transition: all .2s; cursor: pointer; border: none; font-size: 14px; padding: 10px 20px; line-height: 1; }
.btn-ax-primary { background: linear-gradient(135deg,#FF2A2A,#E11D48); color: #fff; }
.btn-ax-primary:hover { opacity: .9; color: #fff; transform: translateY(-1px); }
.btn-ax-ghost { background: rgba(255,255,255,.08); color: #e8eaf0; border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(8px); }
.btn-ax-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 12px; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ax-hero { height: 70vh; min-height: 460px; }
    .ax-hero-inner { max-width: 100%; }
    .ax-hero-gradient { background: linear-gradient(to top, rgba(5,10,20,.95) 0%, rgba(5,10,20,.6) 50%, rgba(5,10,20,.25) 100%); }
    .hero-nav-btn { display: none; }
    .ax-section { padding: 24px 0 0; }
    .ax-section-title { font-size: 16px; }
    .ax-row-nav { width: 38px; height: 38px; }
    .ax-row-nav-prev { left: 8px; }
    .ax-row-nav-next { right: 8px; }
    .ax-row-carousel::before,
    .ax-row-carousel::after { width: 48px; }
}

/* ── Browse page: filter grid (filtered/search results) ──────────────── */
.browse-mode-rows { background: #030712; padding-bottom: 60px; overflow-x: hidden; }
.browse-mode-rows .ax-hero-inner { margin-top: 0; }
