/* ─────────────────────────────────────────────
   ROTWR Media Hub — Stylesheet
   Editorial dark theme, clean and authoritative
───────────────────────────────────────────── */

:root {
    --rotwr-bg:         #0d0d0d;
    --rotwr-surface:    #161616;
    --rotwr-border:     #2a2a2a;
    --rotwr-accent:     #c8a84b;
    --rotwr-text:       #e8e8e8;
    --rotwr-muted:      #888;
    --rotwr-radius:     4px;
    --rotwr-font-head:  'Georgia', 'Times New Roman', serif;
    --rotwr-font-body:  'Helvetica Neue', Arial, sans-serif;
}

.rotwr-hub {
    background: var(--rotwr-bg);
    color: var(--rotwr-text);
    font-family: var(--rotwr-font-body);
    padding: 0;
    border-radius: var(--rotwr-radius);
    overflow: hidden;
}

/* ── Section ── */
.rotwr-section {
    padding: 36px 32px;
    border-bottom: 1px solid var(--rotwr-border);
}
.rotwr-section:last-child {
    border-bottom: none;
}

.rotwr-section-title {
    font-family: var(--rotwr-font-head);
    font-size: 13px;
    font-weight: normal;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--rotwr-accent);
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rotwr-border);
}

.rotwr-empty {
    color: var(--rotwr-muted);
    font-size: 14px;
    font-style: italic;
}

/* ── Podcast ── */
.rotwr-podcast-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rotwr-podcast-item {
    background: var(--rotwr-surface);
    border: 1px solid var(--rotwr-border);
    border-radius: var(--rotwr-radius);
    padding: 20px;
}

.rotwr-podcast-title {
    display: block;
    font-family: var(--rotwr-font-head);
    font-size: 17px;
    color: var(--rotwr-text);
    text-decoration: none;
    margin-bottom: 4px;
    line-height: 1.4;
    transition: color 0.2s;
}
.rotwr-podcast-title:hover {
    color: var(--rotwr-accent);
}

.rotwr-podcast-info {
    display: block;
    font-size: 12px;
    color: var(--rotwr-muted);
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.rotwr-podcast-summary {
    font-size: 14px;
    color: var(--rotwr-muted);
    line-height: 1.6;
    margin: 0 0 14px 0;
}

.rotwr-audio-player {
    width: 100%;
    height: 36px;
    margin-top: 4px;
    border-radius: var(--rotwr-radius);
    filter: invert(1) hue-rotate(180deg) brightness(0.85);
    accent-color: var(--rotwr-accent);
}

/* ── YouTube ── */
.rotwr-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.rotwr-video-item {
    background: var(--rotwr-surface);
    border: 1px solid var(--rotwr-border);
    border-radius: var(--rotwr-radius);
    overflow: hidden;
}

.rotwr-video-thumb {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #111;
}

.rotwr-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.rotwr-video-thumb:hover img {
    transform: scale(1.03);
    opacity: 0.75;
}

.rotwr-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: rgba(200, 168, 75, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #000;
    padding-left: 4px;
    transition: background 0.2s, transform 0.2s;
    pointer-events: none;
}
.rotwr-video-thumb:hover .rotwr-play-btn {
    background: var(--rotwr-accent);
    transform: translate(-50%, -50%) scale(1.1);
}

.rotwr-video-title {
    font-size: 14px;
    font-family: var(--rotwr-font-head);
    color: var(--rotwr-text);
    padding: 12px 14px 4px;
    margin: 0;
    line-height: 1.4;
}

.rotwr-video-date {
    display: block;
    font-size: 11px;
    color: var(--rotwr-muted);
    padding: 0 14px 12px;
    letter-spacing: 0.05em;
}

.rotwr-video-item iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

/* ── Substack Posts ── */
.rotwr-post-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rotwr-post-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--rotwr-border);
    text-decoration: none;
    transition: background 0.15s;
}
.rotwr-post-item:last-child {
    border-bottom: none;
}
.rotwr-post-item:hover {
    background: var(--rotwr-surface);
    padding-left: 10px;
    padding-right: 10px;
    margin: 0 -10px;
    border-radius: var(--rotwr-radius);
}

.rotwr-post-date {
    grid-row: 1;
    grid-column: 1;
    font-size: 11px;
    color: var(--rotwr-accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-top: 2px;
}

.rotwr-post-title {
    grid-row: 1;
    grid-column: 2;
    font-family: var(--rotwr-font-head);
    font-size: 16px;
    color: var(--rotwr-text);
    line-height: 1.35;
}

.rotwr-post-desc {
    grid-row: 2;
    grid-column: 2;
    font-size: 13px;
    color: var(--rotwr-muted);
    line-height: 1.5;
    margin-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .rotwr-section {
        padding: 24px 18px;
    }
    .rotwr-video-grid {
        grid-template-columns: 1fr;
    }
    .rotwr-post-item {
        grid-template-columns: 1fr;
    }
    .rotwr-post-date {
        grid-row: 1;
        grid-column: 1;
        margin-bottom: 4px;
    }
    .rotwr-post-title {
        grid-row: 2;
        grid-column: 1;
    }
    .rotwr-post-desc {
        grid-row: 3;
        grid-column: 1;
    }
}
