/* ========================================
   JAV Tube - Dark Theme Adult Video Site
   ======================================== */

:root {
    --bg-body: #0f0f1a;
    --bg-header: #1a1a2e;
    --bg-card: #16213e;
    --bg-card-hover: #1a2742;
    --bg-input: #0f3460;
    --accent: #e94560;
    --accent-hover: #ff6b81;
    --text-primary: #eee;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border: #2d2d44;
    --radius: 8px;
    --radius-sm: 4px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============ Header ============ */
.site-header {
    background: var(--bg-header);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 56px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
    white-space: nowrap;
}
.logo:hover { color: var(--accent-hover); }

.main-nav {
    display: flex;
    gap: 4px;
}

.nav-link {
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}
.nav-link:hover, .nav-link.active {
    background: rgba(233, 69, 96, 0.15);
    color: var(--accent);
}

.header-search {
    display: flex;
    margin-left: auto;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-input);
}
.header-search input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 6px 14px;
    width: 200px;
    font-size: 0.85rem;
    outline: none;
}
.header-search input::placeholder { color: var(--text-muted); }
.header-search button {
    background: var(--accent);
    border: none;
    color: #fff;
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 20px 20px 0;
    transition: background 0.2s;
}
.header-search button:hover { background: var(--accent-hover); }

.lang-switch {
    display: flex;
    gap: 4px;
    margin-left: auto;
}
.lang-btn {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border);
}
.lang-btn.active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}
.lang-btn:hover { color: #fff; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-tags {
    display: none;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .current { color: var(--text-muted); }

/* ============ Share Buttons ============ */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.share-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.share-btn {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.share-x { background: #000; display: inline-flex; align-items: center; gap: 4px; }
.share-reddit { background: #ff4500; }
.share-copy { background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border); }
.share-btn:hover { opacity: 0.85; color: #fff; }

/* ============ Page Title ============ */
.page-title {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 12px 0;
    color: var(--text-primary);
}

/* ============ Video Grid ============ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.video-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    background: var(--bg-card-hover);
}

.video-card a.thumb-link {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-card .thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.video-card:hover .thumb-img {
    transform: scale(1.05);
}

.video-card .duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.video-card .source-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}
.source-badge.pornhub { background: #ff9000; }
.source-badge.xvideos { background: #c4302b; }
.source-badge.other { background: #666; }

.video-card .card-info {
    padding: 8px 10px;
}

.video-card .card-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 2.1em;
}

.video-card .card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============ Tags Section ============ */
.tags-bar {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 0;
    margin-bottom: 8px;
}

.tag-chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.78rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.tag-chip:hover, .tag-chip.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ============ Video Detail ============ */
/* ============ Video Page Layout ============ */
.video-page-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.video-detail {
    flex: 1;
    min-width: 0;
    padding-bottom: 40px;
}

.video-sidebar {
    width: 300px;
    flex-shrink: 0;
    padding-top: 24px;
}

.sidebar-widget {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Live Sidebar */
.live-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.live-sidebar-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}
.live-dot {
    width: 8px; height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}
.live-model-card {
    position: relative;
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-card);
}
.live-model-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
}
.live-model-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .2s;
}
.live-model-card video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .3s, transform .2s;
}
.live-model-card:hover img,
.live-model-card:hover video { transform: scale(1.03); }
.live-model-info {
    padding: 5px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.live-model-name {
    font-size: 0.78rem;
    color: #eee;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}
.live-model-viewers {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.live-badge {
    position: absolute;
    top: 8px; left: 8px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: .5px;
    display: block;
}

.ad-placeholder {
    width: 300px;
    height: 250px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.video-player {
    position: relative;
    padding-top: 56.25%;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
}
/* Player live cam overlay */
.player-live {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 55%;
    height: 55%;
    border-radius: 6px;
    overflow: hidden;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,.6);
}
.player-live img,
.player-live video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.player-live video {
    opacity: 0;
    transition: opacity .3s;
}
.player-live .live-badge {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 4px;
}
.player-live-close {
    position: absolute;
    top: 6px; right: 6px;
    z-index: 25;
    background: rgba(0,0,0,.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px; height: 24px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.player-live-close:hover { background: rgba(0,0,0,.9); }
.player-live-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 6px 4px;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.player-live-name {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.player-live-viewers {
    font-size: 0.8rem;
    color: rgba(255,255,255,.9);
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 6px;
}
@media (max-width: 900px) {
    .player-live {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
    }
}
.video-play-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    background: rgba(0,0,0,.3);
    transition: background .2s;
}
.video-play-overlay:hover { background: rgba(0,0,0,.1); }
.video-play-overlay svg { filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
/* Floating live cam card on video player */
.float-live {
    position: absolute;
    bottom: 50px;
    right: 10px;
    z-index: 15;
    width: 180px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0,0,0,.85);
    box-shadow: 0 4px 16px rgba(0,0,0,.5);
}
.float-live a { display: block; color: #fff; }
.float-live img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.float-live-info {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 0.7rem;
}
.float-live-info .live-dot {
    width: 6px; height: 6px;
    background: #2ecc71;
    border-radius: 50%;
    flex-shrink: 0;
    animation: livePulse 1.5s ease-in-out infinite;
}
.float-live-viewers {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.65rem;
}
.float-live-close {
    position: absolute;
    top: 2px; right: 2px;
    z-index: 16;
    background: rgba(0,0,0,.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px; height: 20px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.float-live-close:hover { background: rgba(0,0,0,.9); }
@media (max-width: 480px) {
    .float-live { width: 140px; bottom: 40px; right: 6px; }
}
.video-spinner {
    width: 48px; height: 48px;
    border: 4px solid rgba(255,255,255,.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============ Custom Video Controls ============ */
.vp-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    padding: 20px 10px 8px;
    z-index: 3;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}
.video-player:hover .vp-controls,
.video-player.vp-show .vp-controls {
    opacity: 1;
    pointer-events: auto;
}
.vp-progress-wrap {
    width: 100%;
    height: 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 0;
}
.vp-progress {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,.2);
    border-radius: 2px;
    position: relative;
    transition: height .1s;
}
.vp-progress-wrap:hover .vp-progress,
.vp-dragging .vp-progress { height: 5px; }
.vp-buf {
    position: absolute;
    top: 0; left: 0; height: 100%;
    background: rgba(255,255,255,.12);
    border-radius: 2px;
    pointer-events: none;
}
.vp-played {
    position: absolute;
    top: 0; left: 0; height: 100%;
    background: var(--accent);
    border-radius: 2px;
    pointer-events: none;
}
.vp-handle {
    position: absolute;
    top: 50%;
    width: 13px; height: 13px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity .15s;
    pointer-events: none;
    box-shadow: 0 0 4px rgba(0,0,0,.4);
}
.vp-progress-wrap:hover .vp-handle,
.vp-dragging .vp-handle { opacity: 1; }
.vp-row {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
}
.vp-btn {
    background: none;
    border: none;
    color: #ddd;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color .15s;
    flex-shrink: 0;
}
.vp-btn:hover { color: var(--accent-hover); }
.vp-btn svg { width: 22px; height: 22px; fill: currentColor; }
.vp-time {
    color: rgba(255,255,255,.7);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    user-select: none;
}
.vp-spacer { flex: 1; }
.vp-vol {
    display: flex;
    align-items: center;
    gap: 4px;
}
.vp-vol-slider {
    width: 60px;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.vp-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}
.vp-vol-slider::-moz-range-thumb {
    width: 11px; height: 11px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
}
.vp-buf-spinner {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    display: none;
}
/* Fullscreen */
.video-player:fullscreen,
.video-player:-webkit-full-screen {
    padding-top: 0;
    width: 100%; height: 100%;
}
.video-player:fullscreen video,
.video-player:-webkit-full-screen video {
    object-fit: contain;
}
/* Skip buttons in control bar */
.vp-skip-b svg, .vp-skip-f svg { width: 20px; height: 20px; }

/* Double-tap zones */
.vp-tap-zone {
    position: absolute;
    top: 0;
    width: 35%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.vp-tap-left { left: 0; }
.vp-tap-right { right: 0; }
.vp-tap-ripple {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity .15s;
    pointer-events: none;
}
.vp-tap-left .vp-tap-ripple { left: 20%; }
.vp-tap-right .vp-tap-ripple { right: 20%; }
.vp-tap-icon svg { width: 36px; height: 36px; fill: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.vp-tap-text { color: #fff; font-size: 0.75rem; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.vp-tap-zone.vp-tap-active .vp-tap-ripple { opacity: 1; }
.vp-tap-zone.vp-tap-active {
    background: radial-gradient(circle at center, rgba(255,255,255,.12) 0%, transparent 70%);
    animation: vp-tap-fade .5s ease-out;
}
@keyframes vp-tap-fade {
    0% { background: radial-gradient(circle at center, rgba(255,255,255,.18) 0%, transparent 70%); }
    100% { background: radial-gradient(circle at center, transparent 0%, transparent 70%); }
}

@media (max-width: 640px) {
    .vp-vol { display: none; }
    .vp-btn svg { width: 24px; height: 24px; }
    .vp-skip-b svg, .vp-skip-f svg { width: 22px; height: 22px; }
    .vp-progress { height: 4px; }
    .vp-progress-wrap:hover .vp-progress { height: 6px; }
}

.video-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    padding-top: 20px;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.video-source-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 24px;
}
.video-source-link.pornhub { background: #ff9000; }
.video-source-link.xvideos { background: #c4302b; }
.video-source-link:hover { opacity: 0.9; color: #fff; }

.video-description {
    margin: 12px 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.related-section {
    margin-top: 32px;
    scroll-margin-top: 60px;
}
.related-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
/* PC: pagination visible, load-more hidden */
.rel-pc-only { display: block; }
.rel-mobile-only { display: none; }
.loadmore-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 16px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}
.loadmore-btn:hover { background: var(--accent); color: #fff; }
.loadmore-btn:disabled { opacity: 0.5; cursor: wait; }

/* ============ Pagination ============ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 24px 0;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.85rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.page-btn:hover, .page-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.page-dots {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    padding: 0 4px;
}

/* ============ Tabs ============ */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}
.tab-btn {
    padding: 8px 20px;
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.tab-btn:hover, .tab-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ============ Empty State ============ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; }

/* ============ Contact Form ============ */
.contact-form {
    max-width: 560px;
    margin: 0 auto 32px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
}
.form-group textarea { resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.85rem; }
.alert-error { background: rgba(233, 69, 96, 0.15); color: var(--accent); border: 1px solid var(--accent); }
.alert-success { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid #10b981; }

/* ============ Footer ============ */
.site-footer {
    background: var(--bg-header);
    padding: 24px 0;
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid var(--border);
}
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}
.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.8rem;
}
.footer-nav a:hover { color: var(--accent); }
.site-footer p {
    color: var(--text-muted);
    font-size: 0.75rem;
}
.footer-disclaimer {
    margin-top: 4px;
    font-size: 0.7rem !important;
}

/* ============ Terms ============ */
.terms-content, .contact-done {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px 24px;
    line-height: 1.8;
    font-size: 0.9rem;
    max-width: 800px;
    margin: 0 auto 32px;
}
.terms-section { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.terms-section:last-of-type { border-bottom: none; }
.terms-section h2 { font-size: 1rem; margin-bottom: 8px; }
.terms-section ul { margin: 8px 0 8px 20px; }
.terms-section li { margin-bottom: 6px; }

/* ============ Home Live Cams (2-col) ============ */
.home-spot-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    margin-top: 16px;
    margin-bottom: 16px;
}
.home-spot-cell {
    position: relative;
    display: block;
    padding-top: 56.25%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
}
.home-spot-cell img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.home-spot-cell video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity .3s;
}
.home-spot-cell .live-badge {
    top: 6px; left: 6px;
}
.home-spot-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 6px 3px;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.home-spot-name {
    font-size: 0.7rem;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-spot-viewers {
    font-size: 0.58rem;
    color: rgba(255,255,255,.8);
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 4px;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
    .video-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .header-search input { width: 140px; }
    .video-sidebar { display: none; }
    .video-page-layout { display: block; }
    .rel-pc-only { display: none; }
    .rel-mobile-only { display: block; }
}

@media (max-width: 640px) {
    .video-grid { grid-template-columns: 1fr; gap: 8px; }
    .live-spot-inline { grid-column: 1 / -1; width: 100%; }

    .main-nav { display: none; }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--bg-header);
        border-bottom: 1px solid var(--border);
        padding: 12px 16px;
        z-index: 99;
        max-height: 80vh;
        overflow-y: auto;
    }
    .nav-toggle { display: block; }

    .header-search { display: none; }

    .header-inner { flex-wrap: wrap; }

    /* Hide tags bar on mobile (shown inside menu) */
    .tags-bar { display: none; }

    /* Tags inside mobile menu */
    .mobile-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding-top: 12px;
        margin-top: 8px;
        border-top: 1px solid var(--border);
    }
    .mobile-tags .tag-chip {
        font-size: 0.72rem;
        padding: 3px 10px;
    }

    .video-card .card-info { padding: 6px 8px; }
    .video-card .card-title { font-size: 0.85rem; }

    .page-title { font-size: 1rem; }
    .live-spot-inline .live-badge {
        font-size: 0.8rem;
        padding: 3px 8px;
        border-radius: 4px;
    }
}

@media (max-width: 400px) {
    .container { padding: 0 8px; }
    .video-grid { gap: 4px; }
}

/* Inline Live Widget (inside video grid) */
.live-spot-inline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    width: 100%;
    min-width: 0;
}



.live-spot-inline .home-spot-cell {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
}
.live-spot-inline .home-spot-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.live-spot-inline .home-spot-cell video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity .3s;
}
.live-spot-inline .home-spot-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 14px 6px 3px;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Fade transition for refresh */
[data-live-widget] {
    transition: opacity .3s ease;
}
[data-live-widget].refreshing {
    opacity: 0.3;
}

/* Grid inline ads span full width */
.video-grid > .ad-slot { grid-column: 1 / -1; text-align: center; }

/* Mobile-only utility (consolidated from inline styles) */
.mobile-only { display: none; }
@media (max-width: 768px) { .mobile-only { display: block; } }

/* X Save Ranking link - green blinking dot */
.blink-link { position: relative; display: inline-block; }
.blink-link::after {
    content: "";
    position: absolute;
    right: -12px;
    top: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 6px #2ecc71;
    animation: blinkGreen 1.5s infinite;
}
@keyframes blinkGreen {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ExoClick Native Widget - force white text on dark background */
.exo-native-widget,
.exo-native-widget * {
    color: #fff !important;
}
.exo-native-widget a {
    color: #ccc !important;
}

/* Ad card blended into video grid */
.video-grid > .ad-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}
.video-grid > .ad-card ins { display: block; width: 100%; }
.video-grid > .ad-card .ad-label {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 9px;
    color: #666;
    background: rgba(0,0,0,0.5);
    padding: 1px 4px;
    border-radius: 3px;
    z-index: 2;
}

/* ============================================
   Article Pages - puni-puni.com Replica v5
   Uses .container (existing) + .art-layout (new flex)
   ============================================ */

/* --- Base light theme --- */
body.page-articles,
body.page-article {
    background: #fffcfc;
    color: #333;
    font-family: "游ゴシック体", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.6;
}

/* Header coral */
body.page-articles .site-header,
body.page-article .site-header { background: #ff9b9b; }
body.page-articles .site-header .logo,
body.page-article .site-header .logo { color: #fff; }
body.page-articles .nav-link,
body.page-article .nav-link { color: rgba(255,255,255,0.9); }
body.page-articles .nav-link:hover,
body.page-article .nav-link:hover,
body.page-articles .nav-link.active,
body.page-article .nav-link.active { color: #fff; }
body.page-articles .header-search input,
body.page-article .header-search input { background: rgba(255,255,255,0.25); color: #fff; border-color: rgba(255,255,255,0.3); }
body.page-articles .header-search input::placeholder,
body.page-article .header-search input::placeholder { color: rgba(255,255,255,0.7); }
body.page-articles .lang-btn,
body.page-article .lang-btn { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.4); }
body.page-articles .lang-btn.active,
body.page-article .lang-btn.active { background: #fff; color: #ff6363; }

/* =============================================
   Main Layout: Content + Sidebar
   .container provides max-width 1200px
   .art-layout adds flex for sidebar
   ============================================= */
.art-layout {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    align-items: flex-start;
    box-sizing: border-box;
}
.art-layout__main {
    flex: 1;
    min-width: 0;
}
.art-layout__side {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
}
@media (max-width: 960px) {
    .art-layout {
        flex-direction: column;
        gap: 24px;
    }
    .art-layout__side {
        width: 100%;
        position: static;
    }
}

/* Sidebar widgets */
.art-sidebar__widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 20px;
    margin-bottom: 20px;
}
.art-sidebar__title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ff6363;
}
.art-sidebar__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.art-sidebar__list li { border-bottom: 1px solid #f0f0f0; }
.art-sidebar__list li:last-child { border-bottom: none; }
.art-sidebar__list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
}
.art-sidebar__list a:hover { color: #ff6363; }
.art-sidebar__list span { color: #999; font-size: 12px; }

/* =============================================
   Tag Bar
   ============================================= */
.p-tagBar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}
.p-tagBar__chip {
    background: #f5f5f5;
    color: #555;
    border: none;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
}
.p-tagBar__chip:hover,
.p-tagBar__chip.-active { background: #ff6363; color: #fff; }

.l-pageTitle {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px;
}

/* =============================================
   Card Grid
   ============================================= */
.p-cardGrid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5em;
}
.p-cardGrid .p-card {
    width: 50%;
    padding: 0 0.5em;
    margin-bottom: 2em;
    box-sizing: border-box;
}
.p-cardGrid.-col3 .p-card { width: 33.333%; }
@media (max-width: 600px) {
    .p-cardGrid .p-card { width: 50%; margin-bottom: 1.2em; padding: 0 4px; }
    .p-cardGrid.-col3 .p-card { width: 50%; }
}

/* =============================================
   Card Component
   ============================================= */
.p-card__link {
    display: block;
    text-decoration: none;
    color: #333;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 4px 4px -4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s, transform 0.2s;
}
.p-card__link:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    transform: translateY(-3px);
}
.p-card__thumb {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}
.p-card__img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.p-card__link:hover .p-card__img { transform: scale(1.06); }
.p-card__img--placeholder {
    display: flex; align-items: center; justify-content: center;
    background: #f0f0f0; font-size: 2em;
}
.p-card__cat {
    position: absolute;
    top: 0; right: 0;
    background: #ff6363;
    color: #fff;
    font-size: 10px;
    padding: 4px 12px;
    font-weight: 700;
    z-index: 2;
}
.p-card__body { padding: 12px 14px 16px; }
.p-card__title {
    font-size: 14px; font-weight: 500; line-height: 1.5; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    color: #333;
}
.p-card__meta {
    display: flex; gap: 12px; margin-top: 8px;
    font-size: 11px; color: #999;
}

/* =============================================
   Breadcrumb
   ============================================= */
.p-breadcrumb { font-size: 11px; color: #999; margin-bottom: 20px; padding: 8px 0; }
.p-breadcrumb a { color: #666; text-decoration: none; }
.p-breadcrumb a:hover { color: #ff6363; }
.p-breadcrumb > span { color: #ccc; margin: 0 4px; }
.p-breadcrumb .current { color: #999; }

/* =============================================
   Article Detail
   ============================================= */
.p-article__title { font-size: 1.5em; font-weight: 700; line-height: 1.4; margin: 0 0 16px; color: #333; }
.p-article__meta {
    display: flex; gap: 16px; font-size: 13px; color: #999;
    margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #eee; flex-wrap: wrap;
}
.p-article__date { font-weight: 600; }
.p-article__cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.p-article__catBadge {
    background: #ff6363; color: #fff; border: none; font-size: 12px;
    padding: 4px 14px; border-radius: 3px; font-weight: 600; text-decoration: none;
}
.p-article__catBadge:hover { background: #e55555; }

/* Content body */
.p-article__content { color: #333; line-height: 1.8; font-size: 16px; word-break: break-word; margin-bottom: 32px; }
.p-article__content h2.wp-block-heading {
    font-size: 1.2em; line-height: 1.4; margin: 2.5em 0 1.2em; padding: 0.5em 0;
    color: #ff6363; border-bottom: 2px solid #ff6363; font-weight: 700;
}
.p-article__content h3.wp-block-heading {
    font-size: 1.1em; line-height: 1.4; margin: 2em 0 1em;
    color: #333; padding: 0.4em 0 0.4em 14px; border-left: 4px solid #ff6363; font-weight: 700;
}
.p-article__content p { margin: 1.2em 0; line-height: 1.8; }
.p-article__content a { color: #1176d4; }
.p-article__content a:hover { color: #ff6363; }

/* Marker text */
.p-article__content .swl-marker.mark_yellow { background: linear-gradient(transparent 60%, rgba(255,220,100,0.4) 60%); padding: 0 2px; }
.p-article__content .swl-inline-color.has-swl-main-color { color: #ff6363; }

/* wp-block-columns (Profile 2-col) */
.p-article__content .wp-block-columns { display: flex; gap: 2em; margin: 1.5em 0; align-items: flex-start; }
.p-article__content .wp-block-column { flex: 1; min-width: 0; }
@media (max-width: 600px) {
    .p-article__content .wp-block-columns { flex-direction: column; gap: 1em; }
}

/* Profile photo circle */
.p-article__content .is-style-rounded img {
    border-radius: 50%; box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    width: 100%; max-width: 260px; height: auto; aspect-ratio: 1/1;
    object-fit: cover; display: block; margin: 0 auto;
}

/* Profile table */
.p-article__content .wp-block-table { margin: 0; }
.p-article__content .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.p-article__content .wp-block-table td { padding: 10px 14px; border: 1px solid #eee; vertical-align: middle; }
.p-article__content .wp-block-table.td_to_th_ td:first-child {
    background: #ff6363; color: #fff; font-weight: 700; white-space: nowrap;
    width: 110px; text-align: center; font-size: 13px;
}
.p-article__content .wp-block-table.td_to_th_ td:last-child { background: #fff; }
.p-article__content .wp-block-table a { color: #1176d4; word-break: break-all; }

/* Images */
.p-article__content > figure.wp-block-image { margin: 1em 0; }
.p-article__content figure.wp-block-image img {
    max-width: 100%; height: auto; border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 4px 8px -4px rgba(0,0,0,0.2); display: block;
}
.p-article__content figure figcaption { font-size: 12px; color: #999; text-align: center; margin-top: 6px; }
.p-article__content .is-style-photo_frame img {
    border: 5px solid #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.15); border-radius: 4px;
}

/* Gallery */
.p-article__content .wp-block-gallery { display: flex; flex-wrap: wrap; gap: 0.5em; margin: 1.2em 0; list-style: none; padding: 0; }
.p-article__content .wp-block-gallery.columns-2 > .wp-block-image { flex-basis: calc(50% - 0.25em); }
.p-article__content .wp-block-gallery.columns-3 > .wp-block-image { flex-basis: calc(33.333% - 0.34em); }
.p-article__content .wp-block-gallery.columns-4 > .wp-block-image { flex-basis: calc(25% - 0.375em); }
.p-article__content .wp-block-gallery.columns-5 > .wp-block-image { flex-basis: calc(20% - 0.4em); }
.p-article__content .wp-block-gallery.columns-default > .wp-block-image { flex-basis: calc(33.333% - 0.34em); }
.p-article__content .wp-block-gallery > .wp-block-image {
    flex-basis: calc(25% - 0.375em); flex-grow: 0; flex-shrink: 0;
    margin: 0; overflow: hidden; border-radius: 8px;
}
.p-article__content .wp-block-gallery img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 8px;
    box-shadow: none; border: none; margin: 0; display: block; transition: transform 0.3s;
}
.p-article__content .wp-block-gallery img:hover { transform: scale(1.06); }
@media (max-width: 600px) {
    .p-article__content .wp-block-gallery > .wp-block-image,
    .p-article__content .wp-block-gallery.columns-4 > .wp-block-image,
    .p-article__content .wp-block-gallery.columns-5 > .wp-block-image { flex-basis: calc(50% - 0.25em); }
}

/* YouTube embed */
.p-article__content .wp-block-embed-youtube { margin: 1.5em 0; }
.p-article__content .wp-block-embed-youtube .wp-block-embed__wrapper {
    position: relative; padding-top: 56.25%; height: 0; overflow: hidden; border-radius: 12px;
}
.p-article__content .wp-block-embed-youtube iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* In-content related cards (p-postList) */
.p-article__content .p-postList.-type-card {
    display: flex; flex-wrap: wrap; gap: 0; list-style: none; padding: 0; margin: 1em -0.5em;
}
.p-article__content .p-postList.-type-card .p-postList__item { width: 33.333%; padding: 0 0.5em; margin-bottom: 1em; box-sizing: border-box; }
@media (max-width: 600px) {
    .p-article__content .p-postList.-type-card .p-postList__item { width: 50%; }
}
.p-article__content .p-postList__link {
    display: block; text-decoration: none; color: #333; background: #fff; border-radius: 12px;
    overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: box-shadow 0.2s, transform 0.2s;
}
.p-article__content .p-postList__link:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.15); transform: translateY(-2px); }
.p-article__content .p-postList__thumb { position: relative; overflow: hidden; }
.p-article__content .c-postThumb__figure { padding-top: 56.25%; position: relative; overflow: hidden; display: block; }
.p-article__content .c-postThumb__img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.p-article__content .c-postThumb__cat { position: absolute; bottom: 0; left: 0; background: #ff6363; color: #fff; font-size: 10px; padding: 3px 10px; font-weight: 600; z-index: 2; }
.p-article__content .p-postList__body { padding: 10px 12px 14px; }
.p-article__content .p-postList__title { font-size: 13px; line-height: 1.4; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-article__content .p-postList__meta { font-size: 11px; color: #999; margin-top: 4px; }

/* Tags */
.p-article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.p-article__tag { background: #f5f5f5; color: #555; font-size: 12px; padding: 5px 14px; border-radius: 20px; text-decoration: none; }
.p-article__tag:hover { background: #ff6363; color: #fff; }

/* Share */
.p-share { display: flex; align-items: center; gap: 10px; padding: 16px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin: 24px 0; }
.p-share__label { color: #666; font-size: 14px; font-weight: 600; }
.p-share__btn { background: #f5f5f5; color: #555; border: 1px solid #ddd; border-radius: 6px; padding: 6px 16px; font-size: 13px; cursor: pointer; text-decoration: none; }
.p-share__btn:hover { background: #ff6363; color: #fff; border-color: #ff6363; }

/* Related */
.p-related { margin-top: 40px; padding-top: 32px; border-top: 1px solid #eee; }
.p-related__title { font-size: 1.1em; font-weight: 700; color: #333; border-bottom: 2px solid #ff6363; padding-bottom: 8px; margin: 0 0 20px; }

/* Pagination */
body.page-articles .pagination .page-btn,
body.page-article .pagination .page-btn { background: #fff; color: #555; border: 1px solid #ddd; border-radius: 6px; }
body.page-articles .pagination .page-btn:hover,
body.page-article .pagination .page-btn:hover,
body.page-articles .pagination .page-btn.active,
body.page-article .pagination .page-btn.active { background: #ff6363; color: #fff; border-color: #ff6363; }

/* Footer */
body.page-articles footer,
body.page-article footer { background: #f5f5f5; color: #666; }
body.page-articles footer a,
body.page-article footer a { color: #888; }

/* =============================================
   Home page articles section (dark theme)
   ============================================= */
.articles-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08); }
.articles-section .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.articles-section .section-title { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.articles-section .see-all { font-size: 14px; color: var(--accent); text-decoration: none; }
.articles-section .see-all:hover { text-decoration: underline; }
.articles-section .article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 600px) { .articles-section .article-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* Fix: WP adds wp-embed-aspect-16-9 to non-embed elements */
.p-article__content h2.wp-embed-aspect-16-9,
.p-article__content h3.wp-embed-aspect-16-9,
.p-article__content .wp-block-columns.wp-embed-aspect-16-9 {
    aspect-ratio: unset;
    padding-top: 0;
    position: static;
    overflow: visible;
}
.p-article__content .wp-has-aspect-ratio {
    aspect-ratio: unset;
}
/* Fix: is-layout-flex on galleries should not override our flex */
.p-article__content .wp-block-gallery.is-layout-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}
/* Fix: p-postListWrap wrapper */
.p-article__content .p-postListWrap {
    margin: 1.5em 0;
}
.p-article__content .p-postListWrap .p-postList {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 -0.5em;
}
