/* ============================================================
   pornxtv / screen.css  — modernised theme
   Replaces style.css + style2.css
   ============================================================ */

/* ---- custom properties ------------------------------------ */
:root {
    --color-bg:         #f4f4f4;
    --color-header-bg:  #1a1a1a;
    --color-footer-bg:  #1a1a1a;
    --color-surface:    #ffffff;
    --color-card-bg:    #ffffff;
    --color-card-border:#e0e0e0;
    --color-accent:     #0066cc;
    --color-accent-hover:#0052a3;
    --color-online:     #22a855;
    --color-offline:    #888888;
    --color-private:    #e05a00;
    --color-text:       #1a1a1a;
    --color-text-muted: #666666;
    --color-nav-text:   #e8e8e8;
    --color-nav-hover:  #7da8d4;
    --radius-card:      6px;
    --radius-input:     4px;
    --shadow-card:      0 1px 4px rgba(0,0,0,.12);
    --font-body:        "Segoe UI", "Trebuchet MS", Arial, sans-serif;
    --nav-height:       48px;
}

/* ---- reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-size: 14px;
    background: var(--color-bg);
    color: var(--color-text);
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); text-decoration: underline; }

img { display: block; max-width: 100%; height: auto; }

/* ---- site header ----------------------------------------- */
.site-header {
    background: var(--color-header-bg);
    border-bottom: 2px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    gap: 24px;
}

/* logo */
.site-logo-link {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
    text-decoration: none;
}
.site-logo-link:hover { color: var(--color-nav-hover); text-decoration: none; }

/* logo image in header */
.site-logo-img {
    height: 32px;
    width: auto;
    display: block;
}

/* main nav */
.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    list-style: none;
}

.site-nav-item { position: relative; }

.site-nav-link {
    display: block;
    padding: 6px 12px;
    color: var(--color-nav-text);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .4px;
    border-radius: 3px;
    text-decoration: none;
    white-space: nowrap;
}
.site-nav-link:hover,
.site-nav-link.is-current { color: var(--color-nav-hover); text-decoration: none; }

/* categories dropdown */
.site-nav-dropdown-toggle {
    cursor: pointer;
    user-select: none;
}
.site-nav-dropdown-toggle::after {
    content: ' ▾';
    font-size: 10px;
    opacity: .7;
}

.site-nav-dropdown-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    min-width: 520px;
    padding: 16px;
    z-index: 200;
    box-shadow: 0 4px 16px rgba(0,0,0,.5);
}
.site-nav-item:hover .site-nav-dropdown-panel,
.site-nav-item.is-open .site-nav-dropdown-panel { display: flex; gap: 24px; }

.site-nav-dropdown-column { flex: 1; }

.site-nav-dropdown-heading {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #888;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #444;
}

.site-nav-dropdown-list { list-style: none; }
.site-nav-dropdown-list li { display: inline-block; }
.site-nav-dropdown-list a {
    display: inline-block;
    padding: 2px 6px;
    margin: 2px;
    font-size: 12px;
    color: #ccc;
    border-radius: 3px;
}
.site-nav-dropdown-list a:hover { color: #fff; background: #444; text-decoration: none; }

/* header search */
.site-header-search {
    margin-left: auto;
    display: flex;
    gap: 4px;
}
.site-header-search input[type="text"] {
    width: 180px;
    padding: 5px 10px;
    border: 1px solid #555;
    border-radius: var(--radius-input);
    background: #2a2a2a;
    color: #fff;
    font-size: 13px;
    outline: none;
}
.site-header-search input[type="text"]::placeholder { color: #888; }
.site-header-search input[type="text"]:focus { border-color: var(--color-accent); }

.site-header-search button {
    padding: 5px 14px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-input);
    font-size: 13px;
    cursor: pointer;
}
.site-header-search button:hover { background: var(--color-accent-hover); }

/* hamburger (mobile) */
.site-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    margin-left: auto;
    padding: 4px 8px;
}

/* ---- page body ------------------------------------------- */
.site-main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 16px;
}

/* ---- page heading bar ------------------------------------ */
.page-heading-bar {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.page-heading-bar h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
}
.page-heading-count {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ---- thumb grids ----------------------------------------- */
.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

/* webcam card */
.webcam-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform .15s, box-shadow .15s;
}
.webcam-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.webcam-card-image-wrap { position: relative; overflow: hidden; }
.webcam-card-image-wrap img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.webcam-card-status-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #fff;
}
.webcam-card-status-badge.is-online  { background: var(--color-online); }
.webcam-card-status-badge.is-offline { background: var(--color-offline); }
.webcam-card-status-badge.is-private { background: var(--color-private); }

.webcam-card-body { padding: 8px 10px; }
.webcam-card-nickname {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.webcam-card-meta {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 2px;
}
.webcam-card a { color: inherit; text-decoration: none; }
.webcam-card a:hover .webcam-card-nickname { color: var(--color-accent); }

/* video card */
.video-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform .15s, box-shadow .15s;
}
.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.video-card-thumb-wrap { position: relative; }
.video-card-thumb-wrap img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.video-card-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .15s;
    background: rgba(0,0,0,.35);
}
.video-card:hover .video-card-play-icon { opacity: 1; }
.video-card-play-icon::after {
    content: '▶';
    font-size: 36px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.video-card-body { padding: 8px 10px; }
.video-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}
.video-card-meta {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 4px;
}
.video-card a { color: inherit; text-decoration: none; }
.video-card a:hover .video-card-title { color: var(--color-accent); }

/* ---- pagination ------------------------------------------ */
.pagination-bar {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 28px 0 8px;
    flex-wrap: wrap;
}
.pagination-bar a,
.pagination-bar span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: var(--color-accent);
    background: #fff;
    text-decoration: none;
}
.pagination-bar a:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); text-decoration: none; }
.pagination-bar .pagination-current {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    font-weight: 700;
}
.pagination-bar .pagination-disabled {
    color: #bbb;
    cursor: default;
    pointer-events: none;
}

/* ---- video player page ----------------------------------- */
.player-page-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}

.player-main-column { min-width: 0; }

.video-player-wrap {
    background: #000;
    border-radius: var(--radius-card);
    overflow: hidden;
    aspect-ratio: 16/9;
}
.video-player-wrap video,
.video-player-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.video-title-heading {
    font-size: 19px;
    font-weight: 600;
    margin: 14px 0 8px;
    color: var(--color-text);
    line-height: 1.3;
}

.video-meta-bar {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.video-description {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 14px;
}

.video-tags-list { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.video-tag-link {
    display: inline-block;
    padding: 3px 10px;
    background: #e8f0fb;
    color: var(--color-accent);
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
}
.video-tag-link:hover { background: var(--color-accent); color: #fff; text-decoration: none; }

.video-frame-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 6px;
    margin-bottom: 20px;
}
.video-frame-thumbs img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.player-sidebar-column { min-width: 0; }

.player-sidebar-heading {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--color-accent);
    color: var(--color-text);
}

.sidebar-video-list { display: flex; flex-direction: column; gap: 12px; }

.sidebar-video-item { display: flex; gap: 10px; align-items: flex-start; }
.sidebar-video-item a { color: inherit; text-decoration: none; }
.sidebar-video-item a:hover .sidebar-video-title { color: var(--color-accent); }
.sidebar-video-thumb {
    flex-shrink: 0;
    width: 100px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #ddd;
}
.sidebar-video-info { flex: 1; min-width: 0; }
.sidebar-video-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--color-text);
}
.sidebar-video-views { font-size: 11px; color: var(--color-text-muted); margin-top: 3px; }

/* ---- webcam profile page --------------------------------- */
.profile-page-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    align-items: start;
}

.profile-photo-panel {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.profile-photo-gallery { position: relative; }
.profile-photo-gallery-track {
    display: flex;
    transition: transform .3s ease;
}
.profile-photo-gallery-track img {
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.profile-photo-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f8f8;
    border-top: 1px solid #eee;
}
.profile-photo-nav-btn {
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 4px 12px;
    font-size: 13px;
    cursor: pointer;
}
.profile-photo-nav-btn:hover { background: var(--color-accent-hover); }
.profile-photo-nav-btn:disabled { background: #ccc; cursor: default; }
.profile-photo-counter { font-size: 12px; color: var(--color-text-muted); }

.profile-status-cta {
    padding: 12px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}
.profile-status-cta.is-online  { background: #e8f8ee; color: var(--color-online); }
.profile-status-cta.is-private { background: #fff3e8; color: var(--color-private); }
.profile-status-cta.is-offline { background: #f4f4f4; color: var(--color-offline); }
.profile-status-cta a { color: inherit; text-decoration: underline; }

.profile-info-panel { display: flex; flex-direction: column; gap: 16px; }

.profile-info-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-card);
    padding: 16px 20px;
    box-shadow: var(--shadow-card);
}
.profile-info-card h2 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--color-accent);
    color: var(--color-text);
}
.profile-detail-row {
    display: flex;
    gap: 8px;
    padding: 5px 0;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}
.profile-detail-row:last-child { border-bottom: none; }
.profile-detail-label { color: var(--color-text-muted); width: 90px; flex-shrink: 0; }
.profile-detail-value { font-weight: 600; color: var(--color-text); }

.profile-about-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text);
}

.profile-livechat-wrap {
    background: #000;
    border-radius: var(--radius-card);
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 16px;
}
.profile-livechat-wrap iframe,
.profile-livechat-wrap > * { width: 100% !important; height: 100% !important; }

/* ---- home page ------------------------------------------- */
.home-hero-search {
    padding: 24px 0 20px;
}

/* logo + search in one row, centred */
.home-hero-search-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 14px;
}
.home-hero-logo-link { flex-shrink: 0; display: block; }
.home-hero-logo-img  { height: 100px; width: auto; display: block; }

.home-search-form {
    display: flex;
    width: 260px;
    border-radius: var(--radius-input);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.home-search-form input[type="text"] {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-right: none;
    font-size: 14px;
    outline: none;
    min-width: 0;
}
.home-search-form input[type="text"]:focus { border-color: var(--color-accent); }
.home-search-form button {
    padding: 9px 14px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}
.home-search-form button:hover { background: var(--color-accent-hover); }

/* tag cloud directly below the search row */
.home-hero-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 2px 0;
}

.home-section-heading {
    font-size: 17px;
    font-weight: 600;
    margin: 28px 0 14px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--color-accent);
    color: var(--color-text);
}

.tag-cloud-wrap { margin: 24px 0; }
.tag-cloud-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud-link {
    display: inline-block;
    padding: 4px 12px;
    background: #e8f0fb;
    color: var(--color-accent);
    border-radius: 14px;
    font-size: 12px;
    text-decoration: none;
}
.tag-cloud-link:hover { background: var(--color-accent); color: #fff; text-decoration: none; }

/* ---- footer ---------------------------------------------- */
.site-footer {
    background: var(--color-footer-bg);
    border-top: 2px solid #333;
    padding: 20px 16px;
    margin-top: auto;
}
.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
    align-items: center;
}
.site-footer-link {
    color: #aaa;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
    text-decoration: none;
}
.site-footer-link:hover { color: #fff; text-decoration: none; }
.site-footer-sep { color: #444; font-size: 12px; }

/* ---- responsive ------------------------------------------ */
@media (max-width: 900px) {
    .player-page-layout { grid-template-columns: 1fr; }
    .profile-page-layout { grid-template-columns: 1fr; }
    .profile-photo-panel { max-width: 420px; }
}

@media (max-width: 680px) {
    .site-nav { display: none; flex-direction: column; position: fixed; inset: var(--nav-height) 0 0 0; background: #111; padding: 16px; gap: 0; overflow-y: auto; z-index: 99; }
    .site-nav.is-open { display: flex; }
    .site-nav-link { padding: 12px 8px; border-bottom: 1px solid #2a2a2a; border-radius: 0; font-size: 15px; }
    .site-nav-dropdown-panel { position: static; box-shadow: none; border: none; border-radius: 0; padding: 8px 16px; min-width: unset; background: #1a1a1a; flex-direction: column; gap: 8px; }
    .site-nav-toggle { display: block; }
    .site-header-search { display: none; }
    .thumb-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; }
}

@media (max-width: 440px) {
    .thumb-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Predictive Interaction Engine — Phase 1
   ============================================================ */

/* 1a. Haptic simulation */
a, button { transition: transform 80ms cubic-bezier(0.4,0,0.2,1); }
a:active, button:active { transform: scale(0.96); }
.webcam-card:active a, .video-card:active a { transform: none; }
.webcam-card:active { transform: translateY(-2px) scale(0.96); }
.video-card:active  { transform: translateY(-2px) scale(0.96); }

/* 1b. Focus-within glow */
.site-header-search:focus-within,
.home-search-form:focus-within { box-shadow: 0 0 0 3px rgba(0,102,204,.35); }
input:focus { outline: none; }

/* 1c. Webcam-card Quick Stats overlay */
.webcam-card-quickstats {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.8));
    color: #fff; font-size: 11px; padding: 20px 8px 6px;
    transform: translateY(100%);
    transition: transform .2s ease;
    pointer-events: none;
}
.webcam-card:hover .webcam-card-quickstats { transform: translateY(0); }

/* 1d. Card active-state shadow */
.webcam-card:active, .video-card:active {
    box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
}

/* 1e. Pulsing viewer count badge */
@keyframes live-pulse { 0%,100% { opacity:1 } 50% { opacity:.6 } }
.webcam-card-viewers { animation: live-pulse 3s ease-in-out infinite; }

/* 1f. Pulsing CTA nudge (profile idle) */
@keyframes cta-nudge { 0%,100% { transform:scale(1) } 50% { transform:scale(1.05) } }
.profile-status-cta.is-nudging a { animation: cta-nudge .6s ease-in-out 2; }

/* 1g. Page transition wrapper */
#pg_content { transition: opacity .2s ease, transform .2s ease; }
#pg_content.is-leaving { opacity: 0; transform: scale(0.98); }

/* 1h. Mobile glassmorphic bottom nav */
.mobile-bottom-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: rgba(20,20,20,.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 8px 0 env(safe-area-inset-bottom);
    justify-content: space-around;
}
@media (max-width: 680px) {
    .mobile-bottom-nav { display: flex; }
    .site-footer { padding-bottom: 80px; }
}
.mobile-bottom-nav-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 3px; padding: 4px 16px;
    color: rgba(255,255,255,.7); font-size: 10px; text-decoration: none;
    flex: 1;
}
.mobile-bottom-nav-item:hover,
.mobile-bottom-nav-item.is-current { color: #fff; text-decoration: none; }
.mobile-bottom-nav-icon { font-size: 20px; line-height: 1; }
.mobile-bottom-nav-label { font-size: 10px; letter-spacing: .3px; }

/* 1i. Mobile sticky action strip (profile page) */
.profile-sticky-strip {
    position: fixed; bottom: 60px; left: 0; right: 0; z-index: 190;
    background: rgba(20,20,20,.85); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex; align-items: center; gap: 12px; padding: 10px 16px;
    transform: translateY(100%); transition: transform .3s ease;
    border-top: 1px solid rgba(255,255,255,.1);
}
.profile-sticky-strip.is-visible { transform: translateY(0); }
.profile-sticky-strip-label {
    color: #fff; font-size: 14px; font-weight: 600; flex: 1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.profile-sticky-strip-btn {
    background: var(--color-accent); color: #fff;
    border: none; border-radius: 4px; padding: 8px 16px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    white-space: nowrap;
}
.profile-sticky-strip-btn:hover { background: var(--color-accent-hover); }

/* 1j. Skeleton cards */
.skeleton-card {
    border-radius: var(--radius-card);
    overflow: hidden;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
}
@keyframes skeleton-shimmer {
    0%   { background-position: -400px 0 }
    100% { background-position: 400px 0 }
}
.skeleton-thumb { aspect-ratio: 4/3; background: rgba(0,0,0,.08); }
.skeleton-line  { height: 12px; border-radius: 4px; background: rgba(0,0,0,.08); margin: 8px 10px; }
.skeleton-line.short { width: 60%; }

/* 1k. Pattern interrupter card */
.grid-novelty-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: var(--radius-card);
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 4/3;
    animation: novelty-glow 4s ease-in-out infinite alternate;
    color: #fff; font-size: 13px; text-align: center; padding: 16px;
    text-decoration: none;
}
.grid-novelty-card:hover { text-decoration: none; color: #fff; }
@keyframes novelty-glow {
    from { box-shadow: 0 0 8px rgba(0,102,204,.3); }
    to   { box-shadow: 0 0 20px rgba(0,102,204,.7), 0 0 40px rgba(0,102,204,.2); }
}

/* tag cloud */
#tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    line-height: 1.8;
}
#tagcloud a { text-decoration: none; white-space: nowrap; }
#tagcloud a:hover { text-decoration: underline; }

@media (max-width: 680px) {
    #tagcloud {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    #tagcloud::-webkit-scrollbar { display: none; }
    #tagcloud a { font-size: 13px !important; }
}

/* 1l. Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
