/* Destinito TV — public / guest layout.
   M-PLAY-style mobile-first shell: red header, off-canvas drawer, search
   popover, card-based video grid, hero feature carousel, video single
   page, category grids.

   Scoped to body.public-layout so it never collides with the dark-theme
   player/kiosk or the light-theme admin shell. */

body.public-layout {
    --pub-red:         #003366;  /* Destinito brand primary */
    --pub-red-dark:    #002244;
    --pub-red-light:   #ff7f0e;  /* Destinito brand accent (teal) */
    --pub-bg:          #ffffff;
    --pub-surface:     #fafafa;
    --pub-border:      #e5e7eb;
    --pub-text:        #111827;
    --pub-text-muted:  #6b7280;
    --pub-text-dim:    #9ca3af;
    --pub-shadow:      0 2px 8px rgba(0,0,0,0.08);
    --pub-header-h:    56px;
    --pub-drawer-w:    280px;

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--pub-bg);
    color: var(--pub-text);
    margin: 0;
    min-height: 100vh;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

body.public-layout * { box-sizing: border-box; }
body.public-layout a { color: inherit; text-decoration: none; }
body.public-layout img, body.public-layout video { max-width: 100%; display: block; }
body.public-layout button { font-family: inherit; cursor: pointer; }

/* ── Header ────────────────────────────────────────────────── */

.pub-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: var(--pub-header-h);
    background: #0a1e3e;
    background: linear-gradient(180deg, #0a1e3e 0%, #041029 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pub-header__btn {
    background: none;
    border: 0;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 20px;
    padding: 0;
}
.pub-header__btn:hover { background: rgba(255,255,255,0.12); }

.pub-header__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 18px;
    text-transform: uppercase;
}
.pub-header__brand img {
    height: 28px;
    width: auto;
    display: block;
}

/* ── Side drawer ───────────────────────────────────────────── */

.pub-drawer {
    position: fixed;
    top: 0; left: 0;
    width: var(--pub-drawer-w);
    height: 100%;
    background: #ffffff;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(.4,0,.2,1);
    z-index: 200;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(0,0,0,0.2);
}
.pub-drawer.open { transform: translateX(0); }

.pub-drawer__hero {
    position: relative;
    background:
        linear-gradient(180deg, rgba(10,22,40,0.55) 0%, rgba(10,22,40,0.85) 100%),
        url('https://images.unsplash.com/photo-1503614472-8c93d56e92ce?w=640&q=80') center/cover;
    padding: 28px 20px 20px;
    color: white;
    text-align: center;
}
.pub-drawer__switcher {
    margin-top: 16px;
    text-align: left;
}
.pub-drawer__switcher label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 5px;
}
.pub-drawer__switcher select {
    width: 100%;
    padding: 9px 12px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    color: white;
    font-size: 13px;
    font-family: inherit;
    font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}
.pub-drawer__switcher select:focus { outline: none; border-color: rgba(255,255,255,0.6); }
.pub-drawer__switcher select option {
    background-color: #0f2847;
    color: white;
}

/* "Now Broadcasting" nav item — visually prominent at top of drawer */
.pub-drawer__nav a.pub-drawer__nav-broadcast {
    background: linear-gradient(135deg, #0a1628 0%, #163a63 100%);
    color: white !important;
    padding: 14px 20px;
    border-bottom: none;
    border-left: 3px solid #22d3ee;
}
.pub-drawer__nav a.pub-drawer__nav-broadcast:hover {
    background: linear-gradient(135deg, #0f2847 0%, #1a4a7a 100%);
    color: white !important;
}
.pub-drawer__nav a.pub-drawer__nav-broadcast i {
    color: #22d3ee !important;
    font-size: 18px;
}
.pub-drawer__nav a.pub-drawer__nav-broadcast div { flex: 1; }
.pub-drawer__nav a.pub-drawer__nav-broadcast .chev { color: rgba(255,255,255,0.6); }
.pub-drawer__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: white;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
}
.pub-drawer__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; }
.pub-drawer__name { font-weight: 700; font-size: 16px; margin-top: 6px; }
.pub-drawer__sub { font-size: 12px; opacity: 0.85; margin-top: 2px; }

.pub-drawer__nav { list-style: none; padding: 8px 0; margin: 0; }
.pub-drawer__nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--pub-text);
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.pub-drawer__nav a:hover { background: #f8f8f8; }
.pub-drawer__nav a.active { color: var(--pub-red); background: #fef2f2; }
.pub-drawer__nav a i { width: 20px; text-align: center; color: var(--pub-text-muted); font-size: 16px; }
.pub-drawer__nav a .chev { margin-left: auto; color: var(--pub-text-dim); font-size: 12px; }

.pub-drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 150;
}
.pub-drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* ── Search popover ───────────────────────────────────────── */

.pub-search {
    position: fixed;
    top: 0; right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(.4,0,.2,1);
    z-index: 200;
    overflow-y: auto;
    box-shadow: -2px 0 12px rgba(0,0,0,0.2);
    padding: 12px 16px;
}
.pub-search.open { transform: translateX(0); }

.pub-search__row {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}
.pub-search__input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--pub-border);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}
.pub-search__input:focus { border-color: var(--pub-red); }
.pub-search__go {
    background: var(--pub-red);
    color: white;
    border: 0;
    width: 42px;
    border-radius: 6px;
    font-size: 16px;
}

.pub-search__heading {
    color: var(--pub-text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 0 6px;
    border-top: 1px solid #f0f0f0;
}
.pub-search__list { list-style: none; padding: 0; margin: 0; }
.pub-search__list a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    color: var(--pub-text);
    font-size: 14px;
}

/* ── Content container ────────────────────────────────────── */

.pub-main {
    padding-bottom: 40px;
    min-height: calc(100vh - var(--pub-header-h));
}

.pub-section {
    padding: 16px;
}
.pub-section__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pub-section__title .sort {
    color: var(--pub-text-muted);
    font-size: 13px;
    font-weight: 500;
}

/* ── Hero feature card ─────────────────────────────────────── */

.pub-hero {
    position: relative;
    background: #000;
    color: white;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}
.pub-hero__media {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.85;
}
.pub-hero__body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 20px 18px 44px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.75) 60%);
}
.pub-hero__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.pub-hero__meta {
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    margin-bottom: 12px;
}
.pub-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pub-red);
    color: white;
    padding: 9px 18px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    border: 0;
    cursor: pointer;
}
.pub-hero__dots {
    position: absolute;
    left: 0; right: 0; bottom: 14px;
    display: flex;
    gap: 6px;
    justify-content: center;
}
.pub-hero__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
}
.pub-hero__dot.active { background: var(--pub-red); }

/* ── Destination picker ───────────────────────────────────── */

.pub-destination-picker {
    background: var(--pub-surface);
    padding: 16px;
    border-bottom: 1px solid var(--pub-border);
}
.pub-destination-picker__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pub-text-muted);
    margin-bottom: 8px;
}
.pub-destination-picker__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}
.pub-destination-picker__card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: white;
    border: 1.5px solid var(--pub-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pub-text);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.pub-destination-picker__card:hover {
    border-color: var(--pub-red-light);
    transform: translateY(-1px);
}
.pub-destination-picker__card.active {
    border-color: var(--pub-red);
    background: linear-gradient(135deg, rgba(26,107,138,0.06) 0%, rgba(30,161,154,0.06) 100%);
}
.pub-destination-picker__card .flag {
    width: 28px; height: 28px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    background-color: #e5e7eb;
}

/* ── Video card grid ───────────────────────────────────────── */

.pub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.pub-grid--1col { grid-template-columns: 1fr; }

@media (min-width: 720px) {
    .pub-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .pub-grid { grid-template-columns: repeat(4, 1fr); }
}

.pub-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--pub-border);
    box-shadow: var(--pub-shadow);
    display: block;
    color: inherit;
}
.pub-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0a1628;
    background-size: cover;
    background-position: center;
}
.pub-card__duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 3px;
    font-family: 'Space Mono', ui-monospace, monospace;
}
.pub-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.0);
    transition: background 0.2s ease;
}
.pub-card:hover .pub-card__play { background: rgba(0,0,0,0.25); }
.pub-card__play i {
    color: white;
    background: var(--pub-red);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.pub-card:hover .pub-card__play i { opacity: 1; }

.pub-card__body {
    padding: 10px 12px 14px;
}
.pub-card__title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--pub-text);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.pub-card__author { font-size: 11px; color: var(--pub-text-muted); margin-bottom: 3px; }
.pub-card__meta { font-size: 11px; color: var(--pub-text-dim); }

/* ── "Now Broadcasting" hero banner ────────────────────────
   Deep navy blue gradient (not teal) so the banner reads as a primary
   hero at the top of the home page, not a sidebar accent. */

/* Deep navy — force every shade away from teal territory. Uses !important
   on the background so franchisee brand variables can't override it. */
body.public-layout .pub-latest-show {
    margin: 16px;
    background: #0a1628 !important;
    background-image: linear-gradient(135deg, #041029 0%, #0a1e3e 50%, #12305a 100%) !important;
    color: #ffffff !important;
    border-radius: 12px;
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(4, 16, 41, 0.35);
    display: flex;
    align-items: center;
    gap: 22px;
}
body.public-layout .pub-latest-show::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(30, 64, 128, 0.55) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
body.public-layout .pub-latest-show::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(30, 64, 128, 0.30) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
/* Logo column — shown aligned to the left of the banner content */
.pub-latest-show__logo {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 8px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.12);
}
.pub-latest-show__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.pub-latest-show__body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.pub-latest-show__brand {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.pub-latest-show__tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.10);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 5px 11px;
    border-radius: 3px;
    margin-bottom: 10px;
}
.pub-latest-show__tag .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 10px #22d3ee;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.85); }
}
.pub-latest-show__version {
    font-family: 'Space Mono', ui-monospace, monospace;
    color: rgba(255,255,255,0.5);
    font-size: 10px;
    margin-left: 10px;
}
.pub-latest-show__title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 6px;
    line-height: 1.2;
    color: #ffffff;
}
.pub-latest-show__meta {
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    margin-bottom: 16px;
}
/* Higher specificity selector so the body-level `a { color: inherit }` rule
   doesn't leak the white parent color into the button label. */
body.public-layout a.pub-latest-show__cta,
body.public-layout .pub-latest-show__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff !important;
    color: #0a1628 !important;
    padding: 11px 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
body.public-layout a.pub-latest-show__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    color: #0a1628 !important;
}
body.public-layout .pub-latest-show__cta i { color: #003366 !important; font-size: 14px; }

@media (max-width: 520px) {
    body.public-layout .pub-latest-show {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 22px;
    }
    .pub-latest-show__logo { width: 52px; height: 52px; }
    .pub-latest-show__title { font-size: 22px; }
}

/* ── Category page ────────────────────────────────────────── */

.pub-category-title {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 24px 16px 12px;
    color: var(--pub-text);
}
.pub-category-card {
    margin: 0 16px 16px;
    background: white;
    border: 1px solid var(--pub-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--pub-shadow);
}
.pub-category-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.pub-category-card__header i {
    color: var(--pub-red);
    font-size: 18px;
    width: 24px;
    text-align: center;
}
.pub-category-card__body a {
    display: block;
    padding: 12px 16px 12px 52px;
    font-size: 14px;
    color: var(--pub-text-muted);
    border-bottom: 1px solid #f5f5f5;
}
.pub-category-card__body a:last-child { border-bottom: 0; }
.pub-category-card__body a:hover { color: var(--pub-red); }

/* ── Video single page ────────────────────────────────────── */

.pub-video {
    background: #000;
    aspect-ratio: 16 / 9;
    position: relative;
}
.pub-video iframe,
.pub-video video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
}
.pub-video__fs-btn {
    position: absolute;
    right: 10px; bottom: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    font-size: 16px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.pub-video__fs-btn:hover { background: rgba(0,0,0,0.8); }

.pub-video-meta {
    padding: 16px;
    border-bottom: 1px solid var(--pub-border);
}
.pub-video-meta__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}
.pub-video-meta__row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--pub-text-muted);
}
.pub-video-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--pub-border);
}
.pub-video-author__avatar {
    width: 40px; height: 40px;
    background: #f3f4f6;
    color: var(--pub-text-muted);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}
.pub-video-author__name { font-weight: 700; font-size: 14px; }
.pub-video-author__sub { font-size: 11px; color: var(--pub-text-muted); }
.pub-video-body {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--pub-text-muted);
    line-height: 1.5;
}

/* ── Pagination ────────────────────────────────────────────── */

.pub-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
}
.pub-pagination a,
.pub-pagination span {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--pub-border);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pub-text);
}
.pub-pagination a:hover { border-color: var(--pub-red); color: var(--pub-red); }
.pub-pagination .active { background: var(--pub-red); color: white; border-color: var(--pub-red); }

/* ── Orientation: mobile landscape → edge-to-edge player ───── */

body.public-layout.is-landscape.is-playing .pub-header,
body.public-layout.is-landscape.is-playing .pub-main > :not(.pub-video-wrap) {
    display: none;
}
body.public-layout.is-landscape.is-playing .pub-video {
    position: fixed;
    inset: 0;
    aspect-ratio: auto;
    z-index: 999;
}

/* ── Desktop layout (≥960px) ─────────────────────────────────
   The off-canvas drawer becomes a pinned left sidebar. The header and
   main content slide right by --pub-drawer-w so everything lines up
   next to it. The hamburger + overlay are hidden because there's
   nothing to toggle open. */

@media (min-width: 960px) {
    /* Pin the drawer open as a fixed sidebar */
    body.public-layout .pub-drawer {
        transform: translateX(0) !important;
        box-shadow: 1px 0 0 rgba(0,0,0,0.05);
        border-right: 1px solid var(--pub-border);
    }
    body.public-layout .pub-drawer-overlay { display: none !important; }
    body.public-layout .pub-header__btn#pubDrawerBtn { display: none; }

    /* Keep the header full-width (sticky + navy bg spans the viewport)
       but pad content so search doesn't disappear behind the pinned
       sidebar. The drawer's z-index is higher than the header so it
       visually covers the navy bar's left 280px anyway. */
    body.public-layout .pub-header {
        padding-left: calc(var(--pub-drawer-w) + 24px);
        padding-right: 24px;
    }
    /* The sidebar already shows the Destinito wordmark prominently in its
       hero section, so hide the header wordmark on desktop to avoid
       duplication. Search stays visible on the right. */
    body.public-layout .pub-header__brand {
        display: none;
    }
    body.public-layout .pub-main {
        margin-left: var(--pub-drawer-w);
    }

    /* Side-by-side content grid inside the main column */
    .pub-layout-wrap {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 24px;
        padding: 0 24px;
    }
    .pub-layout-wrap--single { grid-template-columns: 1fr; }
    .pub-side { padding-top: 16px; }
}
@media (max-width: 959px) {
    .pub-layout-wrap { display: block; }
    .pub-side { display: block; }
}

.pub-side-card {
    background: white;
    border: 1px solid var(--pub-border);
    border-radius: 8px;
    padding: 16px;
    margin: 0 16px 16px;
}
.pub-side-card__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pub-text-muted);
    margin-bottom: 10px;
}

/* Mini video-list used in side cards */
.pub-mini-list { list-style: none; padding: 0; margin: 0; }
.pub-mini-list li {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.pub-mini-list li:last-child { border-bottom: 0; }
.pub-mini-list__thumb {
    flex-shrink: 0;
    width: 88px;
    aspect-ratio: 16/9;
    background: #0a1628 center/cover;
    border-radius: 4px;
}
.pub-mini-list__title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pub-mini-list__meta { font-size: 10px; color: var(--pub-text-muted); margin-top: 3px; }

/* ── Flash messages ────────────────────────────────────────── */

.pub-flash {
    margin: 12px 16px;
    padding: 12px 14px;
    background: rgba(26,107,138,0.08);
    border: 1px solid rgba(26,107,138,0.25);
    border-radius: 6px;
    color: var(--pub-red);
    font-size: 13px;
}
.pub-flash--err {
    background: rgba(239,68,68,0.08);
    border-color: rgba(239,68,68,0.3);
    color: #dc2626;
}
