:root {
    --pica-bg: #070A12;
    --pica-panel: #0F1320;
    --pica-panel-2: #161B2E;
    --pica-cyan: #00D2F5;
    --pica-gold: #FFB300;
    --pica-red: #E53935;
    --pica-text: #EEF2FF;
    --pica-muted: #8892B0;
    --pica-line: rgba(0, 210, 245, 0.2);
    --pica-x: clamp(12px, 3vw, 46px);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--pica-bg);
}

body.pica-live {
    margin: 0;
    min-height: 100vh;
    background: var(--pica-bg) !important;
    color: var(--pica-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

.pica-live-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 64px;
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.4vw, 24px);
    padding: 0 clamp(16px, 2.4vw, 46px);
    background: #101116;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: none;
    overflow: hidden;
}

.pica-live-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.pica-live-brand img {
    width: 142px;
    height: auto;
    display: block;
}

.pica-live-navlinks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 1.9vw, 28px);
    flex: 0 1 auto;
    min-width: max-content;
}

.pica-live-navlinks a {
    color: var(--pica-text);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.pica-live-navlinks a.active,
.pica-live-navlinks a:hover {
    color: var(--pica-cyan);
}

body.pica-live .sidebar,
body.pica-live .sidebar-overlay {
    display: none !important;
}

.pica-live-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    margin-left: auto;
}

.pica-live-search input {
    width: clamp(250px, 24vw, 320px);
    height: 40px;
    border: 1px solid rgba(136, 146, 176, 0.36);
    border-radius: 8px;
    background: var(--pica-panel-2);
    color: var(--pica-text);
    padding: 0 12px;
    outline: 0;
}

.pica-live-search button,
.pica-live-app {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    background: linear-gradient(90deg, #00a9d4, var(--pica-cyan));
    color: #061015;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.pica-live-app {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pica-gold), #ffd66b);
    white-space: nowrap;
    flex: 0 0 auto;
}

.pica-live-icon,
.pica-mobile-search,
.pica-mobile-menu {
    display: none;
}

body.pica-live .main-content {
    margin-left: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

.pica-page {
    min-height: 100vh;
    padding: 0 var(--pica-x) 94px;
    background:
        radial-gradient(circle at 78% 0, rgba(0, 210, 245, 0.1), transparent 28rem),
        linear-gradient(180deg, rgba(15, 19, 32, 0.92), var(--pica-bg) 22rem);
}

.pica-page-title {
    max-width: 1540px;
    margin: 0 auto;
    padding: 34px 0 14px;
    color: var(--pica-text);
    font-size: clamp(32px, 4vw, 42px);
    line-height: 1;
    font-weight: 900;
}

.pica-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
    gap: 30px;
    max-width: 1540px;
    margin: 0 auto;
}

.pica-stack {
    min-width: 0;
    display: grid;
    gap: 24px;
    overflow: hidden;
}

.pica-side {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 18px;
    position: relative;
    z-index: 2;
}

.pica-loader,
.pica-empty {
    min-height: 54vh;
    display: grid;
    place-items: center;
    color: var(--pica-muted);
    font-weight: 800;
}

.pica-spinner {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 3px solid rgba(238, 242, 255, 0.16);
    border-top-color: var(--pica-cyan);
    animation: pica-spin 0.8s linear infinite;
}

@keyframes pica-spin {
    to { transform: rotate(360deg); }
}

.pica-hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-height: 365px;
    aspect-ratio: 16 / 5.75;
    border-radius: 8px;
    background: var(--pica-panel-2);
    z-index: 1;
}

.pica-hero-bg {
    position: absolute;
    inset: -26px;
    background-size: cover;
    background-position: center;
    filter: blur(22px) brightness(0.58);
    transform: scale(1.1);
}

.pica-hero-inner {
    position: absolute;
    inset: 0;
    z-index: 1;
    height: auto;
    display: grid;
    grid-template-columns: minmax(210px, 310px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(18px, 3vw, 42px);
    padding: clamp(24px, 4vw, 46px);
    background:
        linear-gradient(90deg, rgba(7, 10, 18, 0.76), transparent 64%),
        linear-gradient(0deg, rgba(7, 10, 18, 0.82), transparent 60%);
}

.pica-hero-poster {
    width: min(100%, 245px);
    justify-self: center;
    aspect-ratio: 5 / 7;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.pica-hero-copy {
    position: absolute;
    left: 24px;
    right: auto;
    bottom: 24px;
    align-self: auto;
    min-width: 0;
    width: min(50%, 620px);
    max-width: 620px;
    padding: 15px 16px;
    border: 1px solid rgba(238, 242, 255, 0.08);
    border-radius: 8px;
    background: rgba(20, 13, 16, 0.72);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.pica-kicker {
    color: var(--pica-cyan);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
}

.pica-hero-title {
    margin: 0 0 8px;
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

.pica-desc {
    max-width: 720px;
    margin: 0;
    color: rgba(238, 242, 255, 0.78);
    font-size: 14px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pica-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
    color: var(--pica-muted);
    font-size: 12px;
    font-weight: 800;
}

.pica-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.pica-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    background: linear-gradient(90deg, #00a9d4, var(--pica-cyan));
    color: #061015;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
}

.pica-btn.secondary {
    background: rgba(238, 242, 255, 0.09);
    color: var(--pica-text);
    border: 1px solid rgba(238, 242, 255, 0.12);
}

.pica-btn.gold {
    background: linear-gradient(90deg, var(--pica-gold), #ffd66b);
}

.pica-section {
    min-width: 0;
}

.pica-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}

.pica-section h2,
.pica-side-title {
    margin: 0;
    color: var(--pica-text);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 900;
}

.pica-section-link {
    color: var(--pica-cyan);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.pica-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(130px, 170px);
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 4px;
}

.pica-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
    gap: 14px;
}

.pica-card {
    min-width: 0;
    cursor: pointer;
    border-radius: 8px;
    background: var(--pica-panel);
    overflow: hidden;
    border: 1px solid rgba(238, 242, 255, 0.06);
    transition: transform 0.16s ease, border-color 0.16s ease;
}

.pica-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 210, 245, 0.28);
}

.pica-poster-wrap {
    position: relative;
    aspect-ratio: 5 / 7;
    background:
        linear-gradient(135deg, rgba(0, 210, 245, 0.18), transparent 42%),
        linear-gradient(0deg, #171b2b, #0b0e18);
}

.pica-poster-wrap::after {
    content: "PicaMovies";
    position: absolute;
    inset: auto 8px 42%;
    display: grid;
    place-items: center;
    color: rgba(238, 242, 255, 0.24);
    font-size: 12px;
    font-weight: 900;
    pointer-events: none;
}

.pica-poster {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.pica-poster.is-broken {
    display: none;
}

.pica-card-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    max-width: calc(100% - 14px);
    padding: 4px 7px;
    border-radius: 6px;
    background: rgba(7, 10, 18, 0.86);
    color: var(--pica-cyan);
    font-size: 10px;
    font-weight: 900;
}

.pica-card-info {
    position: relative;
    z-index: 2;
    padding: 9px;
    background: rgba(15, 19, 32, 0.94);
}

.pica-card-title {
    min-height: 34px;
    color: var(--pica-text);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pica-card-meta,
.pica-byline {
    margin-top: 6px;
    color: var(--pica-muted);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 800;
}

.pica-byline {
    color: rgba(238, 242, 255, 0.62);
}

.pica-side-panel {
    padding: 16px;
    border-radius: 8px;
    background: rgba(22, 25, 35, 0.94);
    border: 1px solid rgba(238, 242, 255, 0.08);
    overflow: hidden;
}

.pica-side-list {
    display: grid;
    gap: 0;
    margin-top: 10px;
}

.pica-side-item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid rgba(238, 242, 255, 0.06);
    cursor: pointer;
}

.pica-side-item img {
    width: 68px;
    aspect-ratio: 5 / 7;
    object-fit: cover;
    border-radius: 6px;
    background:
        linear-gradient(135deg, rgba(0, 210, 245, 0.18), transparent),
        #101421;
}

.pica-side-item img.is-broken {
    opacity: 0;
}

.pica-side-item strong {
    display: block;
    color: var(--pica-text);
    font-size: 13px;
    line-height: 1.25;
}

.pica-detail {
    max-width: 1540px;
    margin: 0 auto;
}

.pica-player-shell {
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(300px, 1fr);
    overflow: hidden;
    border-radius: 0 8px 8px 0;
    background: var(--pica-panel-2);
}

.pica-player-shell > * {
    min-width: 0;
}

.pica-video-panel {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 520px;
    max-height: 740px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.pica-video-panel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.pica-video-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 50%);
}

.pica-video-top-controls {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 900;
}

.pica-video-top-controls span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pica-play-center {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(238, 242, 255, 0.75);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.32);
    color: var(--pica-text);
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.pica-mini-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto auto auto auto;
    gap: 7px;
    align-items: center;
    min-height: 54px;
    padding: 13px 8px 8px;
    background: #000;
}

.pica-progress-line {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 0;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
}

.pica-progress-line span {
    display: block;
    width: 10%;
    height: 100%;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.6);
}

.pica-mini-btn,
.pica-mini-pill {
    height: 30px;
    display: inline-grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 900;
    cursor: pointer;
}

.pica-mini-btn {
    width: 31px;
}

.pica-mini-pill {
    max-width: 68px;
    padding: 0 3px;
    font-size: 11px;
    line-height: 1.05;
    text-align: center;
}

.pica-mini-time {
    min-width: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pica-resources {
    position: relative;
    z-index: 4;
    min-width: 0;
    min-height: 520px;
    max-height: 740px;
    display: flex;
    flex-direction: column;
    padding: 0;
    border-left: 1px solid rgba(238, 242, 255, 0.08);
    background: #161B2E;
}

.pica-res-head {
    display: block;
    padding: 16px;
    border-bottom: 1px solid rgba(238, 242, 255, 0.08);
}

.pica-res-head h2 {
    margin: 0 0 7px;
    font-size: 18px;
    font-weight: 800;
}

.pica-source-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--pica-muted);
    font-size: 12px;
    font-weight: 800;
}

.pica-source-line span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pica-season-bar {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(238, 242, 255, 0.08);
}

.pica-season-bar strong {
    font-size: 13px;
}

.pica-season-bar button,
.pica-episode-placeholder button {
    min-height: 34px;
    border: 1px solid rgba(238, 242, 255, 0.12);
    border-radius: 7px;
    background: rgba(238, 242, 255, 0.07);
    color: var(--pica-text);
    padding: 0 12px;
    font-weight: 900;
    cursor: pointer;
}

.pica-episode-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.pica-episode-tabs button,
.pica-episode-grid button {
    border: 1px solid rgba(238, 242, 255, 0.1);
    border-radius: 7px;
    background: rgba(238, 242, 255, 0.06);
    color: var(--pica-text);
    font-weight: 900;
    cursor: pointer;
}

.pica-episode-tabs button {
    min-height: 34px;
    padding: 0 12px;
    white-space: nowrap;
}

.pica-episode-tabs button.active {
    color: #061015;
    background: var(--pica-cyan);
}

.pica-episode-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    padding: 14px 16px;
    max-height: 250px;
    overflow-y: auto;
}

.pica-quality-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 14px 16px;
}

.pica-episode-grid button,
.pica-quality-grid button {
    min-height: 38px;
    min-width: 0;
    padding: 0 10px;
}

.pica-episode-grid button.active,
.pica-episode-grid button:hover,
.pica-quality-grid button.active,
.pica-quality-grid button:hover {
    color: #061015;
    background: var(--pica-cyan);
    border-color: var(--pica-cyan);
}

.pica-quality-grid button {
    min-width: 44px;
    width: auto;
}

.pica-episode-placeholder {
    padding: 16px;
}

.pica-resource-extra {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid rgba(238, 242, 255, 0.08);
}

.pica-resource-extra div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--pica-muted);
    font-size: 12px;
}

.pica-resource-extra strong {
    color: var(--pica-text);
}

.pica-mobile-tools {
    display: none;
    min-height: 64px;
    align-items: center;
    justify-content: space-around;
    gap: 4px;
    padding: 7px 8px 8px;
    background: #0b0f1a;
    border-top: 1px solid rgba(238, 242, 255, 0.08);
    border-bottom: 1px solid rgba(0, 210, 245, 0.16);
}

.pica-mobile-tools button {
    flex: 1 1 0;
    min-width: 0;
    height: 50px;
    display: grid;
    grid-template-rows: 24px 1fr;
    place-items: center;
    gap: 3px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(238, 242, 255, 0.82);
    font-size: 11px;
    font-weight: 900;
}

.pica-mobile-tools button svg {
    width: 23px;
    height: 23px;
}

.pica-mobile-tools .primary-tool {
    background: rgba(0, 210, 245, 0.13);
    color: var(--pica-cyan);
}

.pica-detail-page-title {
    max-width: 1500px;
    margin: 0 auto 14px;
    padding-top: 20px;
    font-size: 16px;
    font-weight: 900;
}

.pica-content-wrap {
    max-width: 1500px;
    margin: 14px auto 0;
    display: grid;
    gap: 18px;
}

.pica-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    margin: 0;
    padding: 0 2px;
    border-bottom: 0;
}

.pica-summary h1 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1;
    font-weight: 900;
}

.pica-info-line {
    display: grid;
    gap: 8px;
    color: rgba(238, 242, 255, 0.8);
    font-size: 14px;
    line-height: 1.45;
}

.pica-detail-info-line {
    padding: 0 2px;
}

.pica-info-line strong {
    color: var(--pica-text);
}

.pica-cast {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 96px;
    gap: 12px;
    overflow-x: auto;
}

.pica-cast-card img,
.pica-cast-fallback {
    width: 96px;
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
    background: var(--pica-panel-2);
}

.pica-cast-fallback {
    display: grid;
    place-items: center;
    color: var(--pica-cyan);
    font-size: 28px;
    font-weight: 900;
}

.pica-cast-card strong {
    display: block;
    margin-top: 7px;
    color: var(--pica-text);
    font-size: 12px;
    line-height: 1.2;
}

.pica-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 90;
    display: none;
    grid-template-columns: repeat(5, 1fr);
    min-height: 64px;
    border: 1px solid rgba(0, 210, 245, 0.2);
    border-radius: 0;
    background: rgba(8, 10, 18, 0.96);
    box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.36);
}

body.pica-live .bottom-nav {
    display: none !important;
}

.pica-bottom-nav a {
    display: grid;
    place-items: center;
    gap: 3px;
    color: #aab2ca;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

.pica-bottom-nav a.active {
    color: var(--pica-cyan);
}

@media (max-width: 1024px) {
    .pica-live-navlinks,
    body.pica-live .app-dl-link {
        display: none !important;
    }

    body.pica-live .menu-btn {
        display: inline-flex;
    }

    body.pica-live .search-container {
        max-width: none;
        margin: 0;
    }

    .pica-layout,
    .pica-player-shell,
    .pica-summary {
        grid-template-columns: 1fr;
    }

    .pica-side {
        display: none;
    }

    .pica-player-shell {
        border-radius: 0;
        max-width: 100%;
    }

    .pica-video-panel {
        min-height: 0;
        max-height: none;
    }

    .pica-resources {
        min-height: 0;
        max-height: none;
        border-left: 0;
    }

    .pica-mobile-tools {
        display: flex;
    }

    .pica-detail-page-title {
        display: none;
    }

    .pica-summary {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 12px;
    }

    .pica-summary .pica-actions {
        display: none;
    }

    .pica-bottom-nav {
        display: grid;
    }
}

@media (max-width: 1320px) and (min-width: 1025px) {
    .pica-live-topbar {
        gap: 14px;
        padding-left: 30px;
        padding-right: 30px;
    }

    .pica-live-brand img {
        width: 128px;
    }

    .pica-live-navlinks {
        gap: 18px;
    }

    .pica-live-navlinks a {
        font-size: 14px;
    }

    .pica-live-search {
        gap: 8px;
    }

    .pica-live-search input {
        width: 250px;
    }

    .pica-live-search button {
        padding: 0 14px;
    }

    .pica-live-app {
        padding: 0 14px;
        font-size: 14px;
    }
}

@media (max-width: 1180px) and (min-width: 1025px) {
    .pica-live-navlinks {
        gap: 16px;
    }

    .pica-live-navlinks a[href="index.php?cat=more"] {
        display: none;
    }

    .pica-live-search input {
        width: 220px;
    }
}

@media (max-width: 1260px) and (min-width: 1025px) {
    .pica-live-navlinks a[href="index.php?cat=more"] {
        display: none;
    }

    .pica-live-search input {
        width: 230px;
    }
}

@media (max-width: 620px) {
    .pica-live-topbar {
        gap: 10px;
        padding: 0 12px;
        height: 74px;
    }

    .pica-live-brand {
        order: 1;
        min-width: 0;
    }

    .pica-live-brand img {
        width: 122px;
    }

    .pica-live-search-toggle {
        order: 2;
        margin-left: auto;
    }

    .pica-live-app {
        order: 3;
        min-height: 36px;
        display: inline-flex;
        padding: 0 12px;
        border-radius: 999px;
        font-size: 12px;
    }

    .pica-live-icon[aria-label="Menu"] {
        order: 4;
    }

    .pica-page {
        padding: 0 0 88px;
    }

    .pica-page-title {
        padding: 32px 12px 14px;
        font-size: 32px;
    }

    .pica-layout,
    .pica-stack,
    .pica-detail {
        display: block;
    }

    .pica-hero {
        height: 220px;
        min-height: 220px;
        aspect-ratio: auto;
        margin: 0 12px 22px;
        border-radius: 8px;
    }

    .pica-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        padding: 8px;
    }

    .pica-hero-poster {
        width: 118px;
        justify-self: center;
        align-self: start;
    }

    .pica-hero-copy {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-width: none;
        padding: 10px 12px;
    }

    .pica-hero-title {
        margin-bottom: 6px;
        font-size: 14px;
    }

    .pica-desc {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 13px;
    }

    .pica-meta {
        gap: 6px;
        font-size: 11px;
    }

    .pica-section {
        padding: 18px 12px 0;
    }

    .pica-row {
        grid-auto-columns: 128px;
    }

    .pica-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
    }

    .pica-card-title {
        font-size: 12px;
    }

    .pica-summary,
    .pica-info-line {
        padding-left: 12px;
        padding-right: 12px;
    }

    .pica-video-top-controls {
        padding: 8px 10px;
    }

    .pica-res-head,
    .pica-season-bar,
    .pica-resource-extra {
        padding-left: 12px;
        padding-right: 12px;
    }

    .pica-episode-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 6px;
        padding: 0 12px 12px;
    }

    .pica-episode-grid button {
        min-width: 0;
        padding: 0;
    }
}

.pica-live-footer {
    padding: 30px var(--pica-x) 90px;
    border-top: 1px solid rgba(238, 242, 255, 0.08);
    background: #060810;
    color: var(--pica-muted);
}

.pica-live-footer img {
    width: 142px;
    height: auto;
}

.pica-live-footer p {
    max-width: 980px;
    margin: 14px 0;
    font-size: 13px;
    line-height: 1.6;
}

.pica-live-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.pica-live-footer-links a {
    color: var(--pica-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.pica-player-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    background: #000;
}

.pica-player-overlay video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pica-player-loading {
    position: absolute;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 900;
}

.pica-player-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .pica-live-topbar {
        gap: 12px;
        padding: 0 12px;
    }

    .pica-live-brand img {
        width: 136px;
    }

    .pica-live-navlinks,
    .pica-live-search {
        display: none;
    }

    .pica-live-icon {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 10px;
        background: rgba(238, 242, 255, 0.08);
        color: var(--pica-text);
        padding: 0;
    }

    .pica-live-search-toggle {
        margin-left: auto;
        background: #fff;
        color: #061015;
    }

    .pica-search-open .pica-mobile-search {
        display: block;
        padding: 0 12px 12px;
        background: rgba(7, 10, 18, 0.96);
        border-bottom: 1px solid var(--pica-line);
    }

    .pica-mobile-search input {
        width: 100%;
        height: 40px;
        border: 1px solid rgba(136, 146, 176, 0.36);
        border-radius: 8px;
        background: var(--pica-panel-2);
        color: var(--pica-text);
        padding: 0 12px;
    }

    .pica-menu-open .pica-mobile-menu {
        position: fixed;
        left: 12px;
        right: 12px;
        top: 74px;
        z-index: 80;
        display: grid;
        gap: 6px;
        padding: 12px;
        border: 1px solid var(--pica-line);
        border-radius: 12px;
        background: rgba(10, 13, 23, 0.98);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    }

    .pica-mobile-menu a {
        min-height: 42px;
        display: flex;
        align-items: center;
        padding: 0 10px;
        border-radius: 8px;
        color: var(--pica-text);
        text-decoration: none;
        font-weight: 900;
    }
}

@media (max-width: 370px) {
    .pica-mini-controls {
        grid-template-columns: auto minmax(0, 1fr) auto auto auto auto;
        gap: 4px;
        padding-left: 7px;
        padding-right: 7px;
    }

    .pica-mini-btn.is-volume {
        display: none;
    }

    .pica-mini-btn {
        width: 28px;
    }

    .pica-mini-pill {
        max-width: 42px;
        font-size: 10.5px;
    }
}

@media (max-width: 520px) {
    .pica-hero-copy {
        left: 58px !important;
        right: 58px !important;
        width: auto !important;
        max-width: none !important;
    }
}

@media (max-width: 520px) {
    .pica-hero-copy {
        left: 58px !important;
        right: 58px !important;
        width: auto !important;
        max-width: none !important;
    }
}

@media (max-width: 520px) {
    .pica-hero-copy {
        left: 58px !important;
        right: 58px !important;
        width: auto !important;
        max-width: none !important;
    }
}

/* Home responsive corrections for tablet and in-between browser widths. */
@media (max-width: 1180px) {
    .pica-live-topbar {
        height: 64px;
    }

    .pica-live-navlinks,
    .pica-live-search {
        display: none !important;
    }

    .pica-live-icon {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 10px;
        background: rgba(238, 242, 255, 0.08);
        color: var(--pica-text);
        padding: 0;
    }

    .pica-live-search-toggle {
        order: 4;
        margin-left: 0;
        background: #fff;
        color: #061015;
    }

    .pica-live-icon[aria-label="Menu"] {
        order: 3;
    }

    .pica-live-app {
        order: 2;
        margin-left: auto;
    }

    .pica-layout {
        grid-template-columns: 1fr;
    }

    .pica-side {
        display: none;
    }
}

@media (min-width: 821px) and (max-width: 1180px) {
    .pica-page-title {
        padding-left: clamp(18px, 2.4vw, 32px);
        padding-right: clamp(18px, 2.4vw, 32px);
    }

    .pica-layout {
        padding-left: clamp(18px, 2.4vw, 32px);
        padding-right: clamp(18px, 2.4vw, 32px);
    }

    .pica-hero {
        min-height: clamp(300px, 34vw, 390px);
        aspect-ratio: 16 / 6.6;
    }

    .pica-hero-inner {
        grid-template-columns: minmax(160px, 245px) minmax(0, 1fr);
        padding: clamp(20px, 3vw, 34px);
    }

    .pica-hero-poster {
        width: min(100%, 220px);
    }

    .pica-hero-copy {
        max-width: min(560px, 100%);
    }

    .pica-hero-title {
        font-size: clamp(30px, 5vw, 48px);
    }

    .pica-row {
        gap: 14px;
    }

    .pica-card {
        width: clamp(128px, 17vw, 168px);
        min-width: clamp(128px, 17vw, 168px);
    }
}

/* Benchmark carousel treatment: centered poster, lower-left glass card, side arrows. */
.pica-hero-inner {
    display: block;
    padding: 0;
    background:
        linear-gradient(90deg, rgba(7, 10, 18, 0.34), transparent 36%, transparent 64%, rgba(7, 10, 18, 0.18)),
        linear-gradient(0deg, rgba(7, 10, 18, 0.52), transparent 48%);
}

.pica-hero-poster {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 1;
    height: 100%;
    width: auto;
    max-width: min(34%, 300px);
    border-radius: 0;
    object-fit: cover;
    transform: translateX(-50%);
    box-shadow: none;
}

.pica-hero-copy {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 2;
    width: min(54%, 620px);
    max-width: 620px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(28, 24, 20, 0.48);
    border: 1px solid rgba(238, 242, 255, 0.09);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(14px);
}

.pica-hero-title {
    font-size: clamp(18px, 1.8vw, 24px);
}

.pica-slider-arrows {
    inset: 0;
    z-index: 4;
    display: block;
    pointer-events: none;
}

.pica-slider-arrows button {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    pointer-events: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.pica-slider-arrows button:first-child {
    left: 16px;
}

.pica-slider-arrows button:last-child {
    right: 16px;
}

@media (max-width: 1180px) {
    .pica-hero-poster {
        max-width: min(38%, 260px);
    }

    .pica-hero-copy {
        width: min(58%, 560px);
    }
}

@media (max-width: 820px) {
    .pica-hero-poster {
        height: 100%;
        max-width: min(42%, 250px);
    }

    .pica-hero-copy {
        left: 14px;
        right: 74px;
        bottom: 14px;
        width: auto;
        max-width: none;
        max-height: none;
    }

    .pica-hero-title {
        display: block;
        font-size: 18px;
    }

    .pica-slider-arrows button:first-child {
        left: 12px;
    }

    .pica-slider-arrows button:last-child {
        right: 12px;
    }
}

@media (max-width: 520px) {
    .pica-hero-copy {
        left: 58px;
        right: 58px;
        padding: 10px;
    }

    .pica-hero-title {
        font-size: 16px;
    }
}

@media (max-width: 820px) {
    .pica-live-topbar {
        height: 64px;
    }

    .pica-live-brand img {
        width: 144px;
    }

    .pica-live-search-toggle {
        order: 4;
        margin-left: 0;
    }

    .pica-live-app {
        order: 2;
        margin-left: auto;
    }

    .pica-live-icon[aria-label="Menu"] {
        order: 3;
    }

    .pica-page-title {
        padding-left: 18px;
        padding-right: 18px;
    }

    .pica-layout {
        padding-left: 18px;
        padding-right: 18px;
    }

    .pica-hero {
        min-height: 282px;
        aspect-ratio: 16 / 5.8;
        overflow: hidden;
    }

    .pica-hero-inner {
        grid-template-columns: minmax(108px, 32vw) minmax(0, 1fr);
        align-items: center;
        gap: 14px;
        padding: 18px;
    }

    .pica-hero-poster {
        width: min(100%, 230px);
    }

    .pica-hero-copy {
        max-width: min(100%, 440px);
        max-height: calc(100% - 36px);
        overflow: hidden;
    }

    .pica-hero-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: clamp(24px, 6vw, 38px);
    }

    .pica-row {
        gap: 16px;
    }

    .pica-card {
        width: clamp(130px, 28vw, 156px);
        min-width: clamp(130px, 28vw, 156px);
    }
}

@media (max-width: 520px) {
    .pica-live-brand img {
        width: 142px;
    }

    .pica-live-topbar {
        gap: 10px;
    }

    .pica-live-app {
        max-width: 154px;
    }

    .pica-page-title {
        padding-left: 18px;
        padding-right: 18px;
        font-size: 28px;
    }

    .pica-layout {
        padding-left: 18px;
        padding-right: 18px;
    }

    .pica-hero {
        min-height: 283px;
        aspect-ratio: auto;
    }

    .pica-hero-inner {
        grid-template-columns: minmax(92px, 42vw) minmax(0, 1fr);
        padding: 18px;
    }

    .pica-hero-poster {
        width: min(100%, 246px);
    }

    .pica-hero-copy {
        align-self: end;
        padding: 10px;
    }

    .pica-hero-title {
        font-size: 20px;
    }

    .pica-card {
        width: calc((100vw - 72px) / 3);
        min-width: calc((100vw - 72px) / 3);
    }
}

@media (min-width: 1181px) and (max-width: 1320px) {
    .pica-hero {
        height: 410px;
        min-height: 410px;
        aspect-ratio: auto;
    }

    .pica-hero-title {
        font-size: clamp(34px, 4vw, 48px);
    }
}

@media (min-width: 821px) and (max-width: 1180px) {
    .pica-hero {
        height: 410px;
        min-height: 410px;
        aspect-ratio: auto;
    }
}

@media (max-width: 620px) {
    .pica-live-topbar {
        height: 74px;
        gap: 9px;
    }

    .pica-live-brand {
        order: 1;
    }

    .pica-live-brand img {
        width: 122px;
    }

    .pica-live-search-toggle {
        order: 2;
        margin-left: auto;
    }

    .pica-live-app {
        order: 3;
        min-height: 36px;
        display: inline-flex;
        padding: 0 11px;
        font-size: 12px;
    }

    .pica-live-icon[aria-label="Menu"] {
        order: 4;
    }
}

/* Prototype alignment layer: keep PicaMovies data hooks, match the approved prototype layout. */
body.pica-live {
    background: var(--pica-bg) !important;
}

.pica-live-topbar {
    justify-content: space-between;
    gap: 22px;
    padding: 0 var(--pica-x);
    background: rgba(7, 10, 18, 0.9);
    border-bottom: 1px solid var(--pica-line);
    backdrop-filter: blur(18px);
    overflow: visible;
}

.pica-live-brand img {
    width: 146px;
}

.pica-live-navlinks {
    flex: 1 1 auto;
    justify-content: center;
    gap: clamp(18px, 2vw, 30px);
    min-width: 0;
}

.pica-live-navlinks a {
    font-size: 16px;
    font-weight: 700;
}

.pica-live-search input {
    width: min(28vw, 320px);
}

.pica-page {
    padding: 0 0 94px;
    background:
        radial-gradient(circle at 72% 0, rgba(0, 210, 245, 0.12), transparent 28rem),
        linear-gradient(180deg, rgba(15, 19, 32, 0.92), var(--pica-bg) 22rem);
}

.pica-page-title {
    max-width: none;
    padding: 18px var(--pica-x) 14px;
    font-size: clamp(22px, 3vw, 40px);
    line-height: 1.05;
}

.pica-layout {
    max-width: none;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    padding: 0 var(--pica-x) 42px;
}

.pica-stack {
    gap: 24px;
    overflow: visible;
}

.pica-hero {
    aspect-ratio: 16 / 5.8;
    min-height: 260px;
    border-radius: 8px;
    cursor: pointer;
}

.pica-hero-bg {
    inset: -32px;
    filter: blur(24px) brightness(0.58);
}

.pica-hero-inner {
    position: relative;
    height: 100%;
    grid-template-columns: minmax(180px, 310px) minmax(0, 1fr);
    gap: clamp(18px, 3vw, 44px);
    padding: clamp(18px, 4vw, 46px);
    background:
        linear-gradient(90deg, rgba(7, 10, 18, 0.72), transparent 62%),
        linear-gradient(0deg, rgba(7, 10, 18, 0.78), transparent 55%);
}

.pica-hero-poster {
    width: min(100%, 245px);
    border-radius: 14px;
}

.pica-hero-copy {
    position: static;
    align-self: end;
    width: auto;
    max-width: 620px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(7, 10, 18, 0.46);
    border: 1px solid rgba(238, 242, 255, 0.1);
    backdrop-filter: blur(12px);
}

.pica-hero-title {
    margin: 0 0 8px;
    font-size: clamp(24px, 4vw, 54px);
    line-height: 1;
}

.pica-meta {
    gap: 10px;
    color: rgba(238, 242, 255, 0.72);
    font-size: 14px;
}

.pica-meta,
.pica-card-meta {
    letter-spacing: 0;
}

.pica-slider-arrows {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    gap: 10px;
}

.pica-slider-arrows button {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(238, 242, 255, 0.2);
    border-radius: 50%;
    background: rgba(7, 10, 18, 0.65);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.pica-section {
    display: grid;
    gap: 10px;
}

.pica-section-head {
    margin: 0;
    gap: 16px;
}

.pica-section h2,
.pica-side-title {
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.2;
}

.pica-section-link {
    color: var(--pica-muted);
    font-weight: 800;
}

.pica-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 2px 0 10px;
    scrollbar-width: none;
}

.pica-row::-webkit-scrollbar {
    display: none;
}

.pica-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 180px));
    gap: 18px 16px;
}

.pica-card {
    width: clamp(130px, 13vw, 180px);
    min-width: clamp(130px, 13vw, 180px);
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.pica-card:hover {
    transform: none;
    border-color: transparent;
}

.pica-card:hover .pica-poster {
    transform: scale(1.035);
}

.pica-poster-wrap {
    border-radius: 8px;
    overflow: hidden;
}

.pica-poster {
    border-radius: 8px;
    transition: transform 0.18s ease;
}

.pica-card-info {
    padding: 0;
    background: transparent;
}

.pica-card-title {
    margin: 8px 4px 0;
    color: var(--pica-text);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3em;
    height: 2.6em; /* Exactly 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.pica-card-meta {
    margin: 6px 4px 0;
    color: var(--pica-muted);
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}

.pica-card-badge {
    top: auto;
    left: 50%;
    bottom: -11px;
    transform: translateX(-50%);
    height: 22px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 5px;
    background: rgba(255, 179, 0, 0.18);
    color: var(--pica-gold);
    font-size: 12px;
}

.pica-side {
    display: grid;
    align-content: start;
    gap: 18px;
}

.pica-side-panel {
    padding: 0;
    border-radius: 8px;
    border: 1px solid rgba(0, 210, 245, 0.14);
    background: rgba(15, 19, 32, 0.82);
}

.pica-side-title {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 210, 245, 0.14);
}

.pica-side-list {
    margin: 0;
}

.pica-side-item {
    grid-template-columns: 68px minmax(0, 1fr);
    padding: 12px 16px;
    border-top: 0;
    border-bottom: 1px solid rgba(238, 242, 255, 0.08);
}

.pica-side-item:last-child {
    border-bottom: 0;
}

.pica-detail {
    max-width: none;
    padding: 20px 12px 88px;
}

.pica-detail-page-title,
.pica-player-shell,
.pica-content-wrap {
    max-width: 1500px;
}

.pica-detail-page-title {
    padding-top: 0;
}

.pica-video-panel {
    min-height: 520px;
    aspect-ratio: auto;
}

.pica-video-panel img {
    opacity: 1;
    filter: brightness(0.62) blur(2px);
}

.pica-play-center {
    width: 74px;
    height: 74px;
    border: 2px solid rgba(238, 242, 255, 0.3);
    background: rgba(7, 10, 18, 0.68);
    color: var(--pica-cyan);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

.pica-video-top-controls {
    padding: 14px 16px;
}

.pica-mini-controls {
    grid-template-columns: auto auto auto minmax(0, 1fr) auto auto auto auto auto auto;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
    min-height: 66px;
}

.pica-progress-line {
    left: 16px;
    right: 16px;
    top: 7px;
    height: 5px;
    background: rgba(255, 255, 255, 0.24);
    cursor: pointer;
    touch-action: none;
}

.pica-progress-line span {
    width: 28%;
    background: var(--pica-cyan);
}

.pica-mini-btn {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: rgba(238, 242, 255, 0.12);
}

.pica-mini-pill {
    min-height: 34px;
    max-width: none;
    padding: 0 10px;
    border-radius: 9px;
    background: rgba(238, 242, 255, 0.12);
    font-size: 12px;
}

.pica-volume-range {
    width: 74px;
    accent-color: var(--pica-cyan);
}

.quality-short {
    display: none;
}

.pica-settings-control {
    position: relative;
    display: inline-grid;
    place-items: center;
}

.pica-settings-control summary {
    list-style: none;
}

.pica-settings-control summary::-webkit-details-marker {
    display: none;
}

.pica-settings-menu {
    position: absolute;
    right: 0;
    bottom: 44px;
    z-index: 8;
    width: 210px;
    display: none;
    padding: 8px;
    border: 1px solid rgba(238, 242, 255, 0.14);
    border-radius: 10px;
    background: rgba(15, 19, 32, 0.96);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.pica-settings-control[open] .pica-settings-menu {
    display: block;
}

.pica-settings-menu button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: rgba(238, 242, 255, 0.86);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    text-align: left;
}

.pica-settings-menu button:hover {
    background: rgba(238, 242, 255, 0.08);
    color: #fff;
}

.pica-res-head h2 {
    font-weight: 700;
}

.pica-season-bar {
    min-height: 0;
    padding: 12px 16px;
}

.pica-episode-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pica-episode-grid button,
.pica-quality-grid button {
    border: 0;
    border-radius: 6px;
    background: rgba(238, 242, 255, 0.1);
    font-size: 14px;
    font-weight: 800;
}

.pica-summary h1 {
    font-size: 22px;
    line-height: 1.2;
}

.pica-title-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 7px;
}

.pica-title-line h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
}

.pica-rating {
    color: var(--pica-gold);
    font-weight: 900;
}

.pica-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(238, 242, 255, 0.72);
    font-size: 13px;
}

.pica-desc {
    line-height: 1.65;
}

.pica-description {
    max-width: 850px;
    margin: 11px 0 0;
    color: rgba(238, 242, 255, 0.76);
    font-size: 14px;
}

.pica-cast-section {
    display: grid;
    gap: 11px;
}

.pica-cast-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.pica-cast-row::-webkit-scrollbar {
    display: none;
}

.pica-cast-card {
    width: clamp(86px, 9vw, 130px);
    min-width: clamp(86px, 9vw, 130px);
}

.pica-cast-thumb {
    width: 100%;
    display: block;
    aspect-ratio: 5 / 7;
    border-radius: 8px;
    object-fit: cover;
    background: var(--pica-panel-2);
}

.pica-cast-card h3 {
    margin: 8px 0 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 700;
}

.pica-cast-card span {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--pica-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
}

.pica-bottom-nav {
    left: 10px;
    right: 10px;
    bottom: 10px;
    min-height: 64px;
    border: 1px solid rgba(0, 210, 245, 0.22);
    border-radius: 18px;
    background: rgba(10, 13, 23, 0.94);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
}

@media (max-width: 1180px) {
    .pica-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .pica-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pica-live-navlinks {
        gap: 14px;
    }

    .pica-live-navlinks a {
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .pica-player-shell {
        grid-template-columns: 1fr;
        border-radius: 0;
        max-width: 100%;
    }

    .pica-video-panel {
        width: 100%;
        min-height: auto;
        height: auto;
        aspect-ratio: 16 / 9;
        background-color: #000;
    }

    .pica-video-panel img {
        object-fit: contain;
        filter: brightness(0.82);
    }

    .pica-play-center {
        width: 58px;
        height: 58px;
    }

    .pica-mini-controls {
        grid-template-columns: auto auto 56px minmax(0, 1fr) auto auto auto auto auto;
        gap: 7px;
        padding: 13px 8px 8px;
        background: #000;
        min-height: 54px;
    }

    .pica-volume-range {
        display: block;
        width: 56px;
        min-width: 56px;
    }

    .pica-mini-btn {
        width: 31px;
        height: 30px;
        border-radius: 6px;
        background: transparent;
    }

    .pica-mini-controls button[aria-label="Share"] {
        display: none;
    }

    .pica-mini-pill {
        min-height: 30px;
        max-width: 68px;
        padding: 0 3px;
        background: transparent;
        font-size: 11px;
        line-height: 1.05;
        white-space: normal;
    }

    .pica-mini-time {
        font-size: 12px;
    }

    .pica-resources {
        min-height: 0;
        max-height: none;
        border-left: 0;
    }
}

@media (max-width: 820px) {
    .pica-live-topbar {
        height: 56px;
        gap: 12px;
        padding: 0 12px;
    }

    .pica-live-brand img {
        width: 122px;
    }

    .pica-live-navlinks,
    .pica-live-search {
        display: none;
    }

    .pica-live-icon {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border: 0;
        background: transparent;
        color: var(--pica-text);
        padding: 0;
    }

    .pica-live-search-toggle {
        order: 2;
        margin-left: auto;
        background: transparent;
        color: var(--pica-text);
    }

    .pica-live-app {
        order: 3;
        min-height: 32px;
        max-width: 120px;
        padding: 0 10px;
        overflow: hidden;
        font-size: 12px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .pica-live-icon[aria-label="Menu"] {
        order: 4;
    }

    .pica-page-title {
        padding-top: 14px;
    }

    .pica-layout {
        padding: 0 12px 88px;
        gap: 22px;
    }

    .pica-hero {
        height: auto;
        min-height: 220px;
        margin: 0;
        aspect-ratio: 16 / 9;
    }

    .pica-hero-inner {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
    }

    .pica-hero-poster {
        width: 100px;
        border-radius: 8px;
    }

    .pica-hero-copy {
        align-self: end;
        padding: 10px;
    }

    .pica-hero-title {
        font-size: 22px;
    }

    .pica-meta {
        font-size: 12px;
        gap: 7px;
    }

    .pica-row {
        gap: 9px;
    }

    .pica-card {
        width: 118px;
        min-width: 118px;
    }

    .pica-card-title {
        font-size: 13px;
    }

    .pica-side {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pica-detail {
        padding-left: 0;
        padding-right: 0;
    }

    .pica-content-wrap {
        margin-top: 10px;
        padding: 0 12px;
        gap: 16px;
    }

    .pica-summary h1 {
        font-size: 20px;
    }

    .pica-title-line h1 {
        font-size: 20px;
    }

    .pica-summary {
        padding: 0;
    }

    .pica-summary .pica-actions {
        display: none;
    }

    .pica-desc {
        display: -webkit-box !important;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .pica-cast-row {
        gap: 9px;
    }

    .pica-cast-card {
        width: calc((100% + 16px) / 4 - 16px);
        min-width: calc((100% + 16px) / 4 - 16px);
    }

    .pica-episode-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .pica-bottom-nav {
        display: grid;
    }
}

@media (max-width: 370px) {
    .pica-mini-controls {
        grid-template-columns: auto minmax(0, 1fr) auto auto auto auto;
        gap: 4px;
        padding-left: 7px;
        padding-right: 7px;
    }

    .pica-mini-btn.is-volume {
        display: none;
    }

    .pica-mini-btn {
        width: 28px;
    }

    .quality-full {
        display: none;
    }

    .quality-short {
        display: inline;
    }

    .pica-mini-pill {
        max-width: 42px;
        font-size: 10.5px;
    }
}

.pica-side-item { text-decoration: none !important; }
.pica-side-item a { text-decoration: none !important; }
.pica-side-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-med, #8892B0);
    font-size: 13px;
    margin-top: 4px;
    line-height: 1.4;
}


.pica-side-rank {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    z-index: 2;
    border: 2px solid #0d1117;
}
.pica-side-thumb { position: relative; }


.pica-side-rank {
    position: absolute;
    top: 0; left: 0;
    width: 24px; height: 24px;
    border-radius: 6px 0 6px 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: bold; color: white;
    z-index: 2; border: none; box-shadow: none;
}
.pica-side-meta {
    font-size: 11px; color: #9ca3af; margin: 4px 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}


 @ k e y f r a m e s   p i c a L i v e S c r o l l   {   0 %   {   t r a n s f o r m :   t r a n s l a t e X ( 0 ) ;   }   1 0 0 %   {   t r a n s f o r m :   t r a n s l a t e X ( - 5 0 % ) ;   }   }  
 
.pica-no-scrollbar::-webkit-scrollbar { display: none; }
.pica-live-tv-scroll { scroll-behavior: auto; user-select: none; }

/* -- Live TV Carousel Cards ------------------------------------------------ */
.pica-live-tv-scroll {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    padding-bottom: 10px;
}
.pica-live-tv-scroll:active { cursor: grabbing; }
.pica-live-tv-track {
    display: flex;
    gap: 15px;
    width: max-content;
}
.pica-live-tv-card {
    min-width: 110px;
    width: 110px;
    flex-shrink: 0;
    text-align: center;
    user-select: none;
    -webkit-user-drag: none;
}
.pica-live-tv-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
    display: block;
    pointer-events: none;
    background: #1a1a2e;
}
.pica-live-tv-fallback {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 2px solid #3b82f6;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    color: #fff;
}
.pica-live-tv-label {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255,255,255,0.85);
}

@media (max-width: 768px) {
    .pica-live-tv-card {
        min-width: 85px;
        width: 85px;
    }
    .pica-live-tv-fallback {
        font-size: 20px;
    }
    .pica-live-tv-label {
        font-size: 10px;
        margin-top: 6px;
    }
}
.pica-live-all-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.25s;
}
.pica-live-all-overlay.is-open { opacity: 1; }
.pica-live-all-modal {
    background: linear-gradient(180deg, #111827 0%, #0c1120 100%);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 22px 22px 0 0;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 -16px 60px rgba(0,0,0,0.6);
    transform: translateY(40px);
    transition: transform 0.3s cubic-bezier(.22,1,.36,1);
}
.pica-live-all-overlay.is-open .pica-live-all-modal { transform: translateY(0); }
.pica-live-all-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 14px;
    position: sticky;
    top: 0;
    background: #111827;
    z-index: 1;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pica-live-all-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(90deg, #fff 60%, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pica-lsa-close-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.pica-lsa-close-btn:hover { background: rgba(255,255,255,0.14); color:#fff; }

/* Category filter chips */
.pica-lsa-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pica-lsa-chip {
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
}
.pica-lsa-chip:hover { border-color: #3b82f6; color:#fff; }
.pica-lsa-chip.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

/* Channel rows */
.pica-lsa-list { padding: 10px 16px 24px; display: flex; flex-direction: column; gap: 4px; }
.pica-lsa-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.14s;
    text-decoration: none;
}
.pica-lsa-row:hover { background: rgba(59,130,246,0.1); }
.pica-lsa-logo {
    width: 52px; height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(59,130,246,0.4);
    background: #1a1a2e;
    position: relative;
}
.pica-lsa-logo img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.pica-lsa-init {
    width: 100%; height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}
.pica-lsa-info { flex: 1; min-width: 0; }
.pica-lsa-name {
    font-size: 14px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: #fff;
}
.pica-lsa-cat {
    font-size: 11px; color: #3b82f6;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-top: 2px; font-weight: 600;
}
.pica-lsa-live-dot {
    display: flex; align-items: center; gap: 5px;
    font-size: 10px; font-weight: 700; color: #ef4444;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.pica-lsa-live-dot span {
    width: 7px; height: 7px; border-radius: 50%;
    background: #ef4444;
    animation: picaLivePulse 1.4s ease-in-out infinite;
}
@keyframes picaLivePulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.4); }
}
.pica-lsa-arrow {
    color: rgba(255,255,255,0.3);
    font-size: 20px;
    flex-shrink: 0;
    padding-right: 4px;
}
@media (max-width: 600px) {
    .pica-live-all-modal { max-height: 95vh; }
    .pica-lsa-chips { padding: 12px 16px; }
    .pica-lsa-list { padding: 8px 8px 80px; }
}


/* -- See All button (premium pill) -------------------------------------------- */
.pica-section-link {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(59,130,246,0.45);
    background: rgba(59,130,246,0.12);
    color: #60a5fa;
    font-size: 12px; font-weight: 700;
    cursor: pointer;
    transition: all 0.18s;
    text-decoration: none;
    letter-spacing: 0.3px;
}
.pica-section-link:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    box-shadow: 0 0 14px rgba(59,130,246,0.4);
}

/* -- See All modal centering fix -------------------------------------------- */
.pica-live-all-overlay {
    align-items: center !important;
    padding: 20px;
}
.pica-live-all-modal {
    border-radius: 22px !important;
    transform: translateY(0) scale(0.96) !important;
    opacity: 0;
    transition: opacity 0.25s, transform 0.28s cubic-bezier(.22,1,.36,1) !important;
}
.pica-live-all-overlay.is-open .pica-live-all-modal {
    opacity: 1;
    transform: scale(1) !important;
}

/* -- Fullscreen and Manual controls auto-hide ------------------------------------------- */
.pica-video-panel.pica-fs-hide-controls .pica-mini-controls,
.pica-video-panel.pica-fs-hide-controls .pica-video-top-controls,
.pica-video-panel.pica-fs-hide-controls .pica-progress-line,
.pica-video-panel.pica-hide-controls .pica-mini-controls,
.pica-video-panel.pica-hide-controls .pica-video-top-controls,
.pica-video-panel.pica-hide-controls .pica-progress-line,
.pica-video-panel.pica-hide-controls .pica-play-center {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}
.pica-video-panel .pica-mini-controls,
.pica-video-panel .pica-video-top-controls,
.pica-video-panel .pica-progress-line {
    transition: opacity 0.3s;
}
.pica-video-panel.pica-fs-hide-controls { cursor: none; }

/* -- Adult content toggle & disclaimer --------------------------------------- */
.pica-adult-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 13px;
    border-radius: 20px;
    border: 1px solid rgba(239,68,68,0.35);
    background: rgba(239,68,68,0.08);
    color: rgba(239,68,68,0.75);
    font-size: 11px; font-weight: 700;
    cursor: pointer;
    transition: all 0.18s;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}
.pica-adult-toggle:hover { background: rgba(239,68,68,0.18); color: #ef4444; }
.pica-adult-toggle.is-on {
    border-color: #ef4444;
    background: rgba(239,68,68,0.2);
    color: #ef4444;
}
.pica-adult-overlay {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(0,0,0,0.85);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    backdrop-filter: blur(10px);
    animation: picaFadeIn 0.2s ease;
}
.pica-adult-modal {
    background: linear-gradient(160deg, #1a0a0a 0%, #0c1120 100%);
    border: 1px solid rgba(239,68,68,0.35);
    border-radius: 20px;
    width: 100%; max-width: 480px;
    padding: 36px 32px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,0.7), 0 0 40px rgba(239,68,68,0.1);
}
.pica-adult-icon { font-size: 52px; margin-bottom: 12px; }
.pica-adult-modal h2 { margin: 0 0 12px; font-size: 22px; font-weight: 900; color: #ef4444; }
.pica-adult-modal p { color: rgba(255,255,255,0.7); font-size: 14px; margin: 0 0 12px; }
.pica-adult-modal ul { text-align: left; color: rgba(255,255,255,0.65); font-size: 13px; margin: 0 0 24px; padding-left: 20px; display: grid; gap: 6px; }
.pica-adult-modal ul li strong { color: #fff; }
.pica-adult-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pica-adult-cancel {
    padding: 10px 22px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.15s;
}
.pica-adult-cancel:hover { background: rgba(255,255,255,0.13); color: #fff; }
.pica-adult-confirm {
    padding: 10px 22px; border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: all 0.15s;
    box-shadow: 0 4px 14px rgba(239,68,68,0.35);
}
.pica-adult-confirm:hover { background: linear-gradient(135deg, #b91c1c, #dc2626); transform: translateY(-1px); }
@keyframes picaFadeIn { from { opacity: 0; } to { opacity: 1; } }

.pica-inline-video { pointer-events: none; }
.pica-video-panel { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }


/* -- Football tab bar -------------------------------------------------------- */
.pica-fb-tab-bar { display:flex; gap:6px; align-items:center; margin-left:auto; }
.pica-fb-tab { background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.12); color:rgba(255,255,255,0.6); font-size:12px; font-weight:700; padding:5px 14px; border-radius:20px; cursor:pointer; transition:all 0.2s; white-space:nowrap; }
.pica-fb-tab:hover { background:rgba(255,255,255,0.14); color:#fff; }
.pica-fb-tab.is-active { background:#e50914; border-color:#e50914; color:#fff; }
.pica-fb-tab-count { display:inline-block; background:rgba(255,255,255,0.25); border-radius:10px; padding:0 6px; font-size:10px; margin-left:2px; vertical-align:middle; }
.pica-fb-tab.is-active .pica-fb-tab-count { background:rgba(255,255,255,0.3); }
/* -- Live Football UI -------------------------------------------------------- */
.pica-fb-scroll {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    padding-bottom: 10px;
}
.pica-fb-scroll:active { cursor: grabbing; }
.pica-fb-scroll::-webkit-scrollbar { display: none; }

.pica-fb-track {
    display: flex;
    gap: 16px;
    width: max-content;
}

.pica-fb-card {
    min-width: 260px;
    width: 260px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 8px;
    position: relative;
    user-select: none;
    -webkit-user-drag: none;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(135deg, #5c0b11 50%, #0a1f5c 50%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pica-fb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

.pica-fb-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-bottom-right-radius: 6px;
}

.pica-fb-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    margin-bottom: auto;
    margin-top: 25px;
}

.pica-fb-flag {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
    background: #111;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.pica-fb-vs {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin: 0 10px;
}

.pica-fb-score {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
    margin: 0 8px;
    letter-spacing: 2px;
    background: rgba(0,0,0,0.35);
    padding: 3px 10px;
    border-radius: 6px;
}

.pica-fb-label {
    font-size: 11px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pica-fb-score {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
    margin: 0 8px;
    letter-spacing: 2px;
    background: rgba(0,0,0,0.35);
    padding: 3px 10px;
    border-radius: 6px;
}

/* Badge colour variants */
.pica-fb-badge[data-matchtime] {
    background: rgba(30, 80, 200, 0.85);
}


/* -- Football tab bar -------------------------------------------------------- */
.pica-fb-tab-bar { display:flex; gap:6px; align-items:center; margin-left:auto; }
.pica-fb-tab { background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.12); color:rgba(255,255,255,0.6); font-size:12px; font-weight:700; padding:5px 14px; border-radius:20px; cursor:pointer; transition:all 0.2s; white-space:nowrap; }
.pica-fb-tab:hover { background:rgba(255,255,255,0.14); color:#fff; }
.pica-fb-tab.is-active { background:#e50914; border-color:#e50914; color:#fff; }
.pica-fb-tab-count { display:inline-block; background:rgba(255,255,255,0.25); border-radius:10px; padding:0 6px; font-size:10px; margin-left:2px; vertical-align:middle; }
.pica-fb-tab.is-active .pica-fb-tab-count { background:rgba(255,255,255,0.3); }
/* -- Live Football UI -------------------------------------------------------- */
.pica-fb-scroll {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    padding-bottom: 10px;
}
.pica-fb-scroll:active { cursor: grabbing; }
.pica-fb-scroll::-webkit-scrollbar { display: none; }

.pica-fb-track {
    display: flex;
    gap: 16px;
    width: max-content;
}

.pica-fb-card {
    min-width: 260px;
    width: 260px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 8px;
    position: relative;
    user-select: none;
    -webkit-user-drag: none;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(135deg, #5c0b11 50%, #0a1f5c 50%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pica-fb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

.pica-fb-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-bottom-right-radius: 6px;
}

.pica-fb-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    margin-bottom: auto;
    margin-top: 25px;
}

.pica-fb-flag {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
    background: #111;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.pica-fb-vs {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin: 0 10px;
}

.pica-fb-label {
    font-size: 11px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Welcome Popup */
.pica-welcome-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.pica-welcome-overlay.show {
    opacity: 1;
    visibility: visible;
}
.pica-welcome-modal {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 28px;
    padding: 35px 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    color: #fff;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}
.pica-welcome-overlay.show .pica-welcome-modal {
    transform: translateY(0) scale(1);
}
.pica-welcome-modal h3 {
    margin-top: 0;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pica-welcome-modal p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
}
.pica-welcome-disclaimer {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 25px;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}
.pica-welcome-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pica-welcome-btns a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    transition: all 0.3s ease;
    gap: 8px;
}
.pica-welcome-btns a svg {
    width: 18px; height: 18px; fill: currentColor;
}
.pica-btn-report {
    background: linear-gradient(135deg, #FF453A, #FF3B30);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.3);
    color: #fff;
}
.pica-btn-report:hover {
    background: linear-gradient(135deg, #FF554A, #FF4B40);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.4);
}
.pica-btn-advertise {
    background: linear-gradient(135deg, #30D158, #28CD41);
    border: none;
    box-shadow: 0 4px 15px rgba(40, 205, 65, 0.3);
    color: #fff;
}
.pica-btn-advertise:hover {
    background: linear-gradient(135deg, #40E168, #38DD51);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 205, 65, 0.4);
}
.pica-welcome-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
}
.pica-welcome-close:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    transform: rotate(90deg);
}

