@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

:root {
    --bg-color: #fbf9f6; /* Warm luxury paper cream */
    --border-color: #e6e3dc; /* Soft sandy gray borders */
    --primary: #9b7a1e; /* Sophisticated muted gold */
    --accent: #d82b6b;   /* Classic chic magenta/pink */
    --text-main: #18181c; /* Deep charcoal for high contrast */
    --text-muted: #5e5e6e; /* Muted gray for secondary info */
    --font-serif: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --transition-speed: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    letter-spacing: -0.2px;
}

/* Base Container */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Premium Editorial Header */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 4rem;
    text-align: center;
}

.brand-section {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 800;
    font-style: italic;
    color: var(--text-main);
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

.issue-info {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
}

.header-banner-text {
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 800;
    line-height: 0.9;
    text-transform: uppercase;
    margin: 1.5rem 0;
    color: #eae5d9; /* Very light sand color to blend with paper bg */
    user-select: none;
    letter-spacing: -3px;
    width: 100%;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
}

/* Action button */
.sync-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.4rem;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.sync-btn:hover {
    background: var(--text-main);
    color: var(--bg-color);
    border-color: var(--text-main);
}

/* Main Magazine Grid Layout */
.magazine-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

@media (min-width: 992px) {
    .magazine-grid {
        grid-template-columns: 1.7fr 1.3fr;
    }
}

/* Left Column: Editorial Feature (AI Daily Summary) */
.editorial-article {
    border-right: 0;
    padding-right: 0;
}

@media (min-width: 992px) {
    .editorial-article {
        border-right: 1px solid var(--border-color);
        padding-right: 4rem;
    }
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.article-badge {
    background: var(--text-main);
    color: var(--bg-color);
    font-weight: 700;
    padding: 0.2rem 0.6rem;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.article-content {
    font-size: 1.05rem;
    color: var(--text-main);
}

.article-content h1, .article-content h2, .article-content h3 {
    font-family: var(--font-serif);
    color: var(--text-main);
    margin: 2.5rem 0 1.25rem 0;
    font-weight: 600;
    font-size: 1.6rem;
    line-height: 1.2;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.5rem;
}

.article-content h1:first-of-type, .article-content h2:first-of-type {
    margin-top: 0;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    text-align: justify;
}

/* First paragraph has a drop-cap like style optionally */
.article-content p:first-of-type {
    color: var(--text-main);
    font-size: 1.15rem;
}

.article-content ul, .article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content strong {
    color: var(--text-main);
    font-weight: 600;
}

.article-content blockquote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--primary);
    border-left: 2px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

/* Right Column: Channels & Directors */
.editorial-sidebar {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.section-label {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--text-main);
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-label span {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.sidebar-channel-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.channel-card-premium {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.channel-card-premium:last-child {
    border-bottom: 0;
}

.channel-profile-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.channel-avatar-premium {
    width: 60px;
    height: 60px;
    border-radius: 0; /* Square/Angular avatars feel more premium/editorial */
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.channel-meta-premium h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.channel-meta-premium p {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.channel-ai-summary-premium {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    border-left: 2px solid var(--border-color);
    padding-left: 1rem;
    font-style: italic;
}

.channel-link-premium {
    align-self: flex-start;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: color var(--transition-speed);
}

.channel-link-premium:hover {
    color: var(--text-main);
}

.sidebar-playlist-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.playlist-card-premium {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.playlist-card-premium:last-child {
    border-bottom: 0;
}

.playlist-info-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.playlist-meta-premium h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.playlist-meta-premium p {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.playlist-description-premium {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    border-left: 2px solid var(--border-color);
    padding-left: 1rem;
    font-style: italic;
}

.playlist-link-premium {
    align-self: flex-start;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: color var(--transition-speed);
}

.playlist-link-premium:hover {
    color: var(--text-main);
}

/* Video Section (Magazine Grid Style) */
.videos-section {
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
}

.video-grid-premium {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem 2rem;
}

@media (min-width: 768px) {
    .video-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* The first video (Featured) occupies larger space */
@media (min-width: 1024px) {
    .video-card-premium.featured {
        grid-column: span 2;
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 2rem;
    }
    
    .video-card-premium.featured .video-thumbnail-wrapper {
        padding-top: 0;
        height: 100%;
    }
}

.video-card-premium {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #000;
}

.video-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: all var(--transition-speed) ease;
}

.video-card-premium:hover .video-img {
    transform: scale(1.03);
    opacity: 1;
}

.video-category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #000;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0.6rem;
    z-index: 2;
}

.video-info-premium {
    padding: 1.25rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.video-channel-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    font-weight: 700;
}

.video-title-premium {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    transition: color var(--transition-speed);
}

.video-card-premium:hover .video-title-premium {
    color: var(--primary);
}

.video-date-premium {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.video-meta-row-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    font-size: 0.8rem;
}

.video-stats-premium {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--text-muted);
}

.stat-views-premium, .stat-likes-premium {
    background: rgba(24, 24, 28, 0.04);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}


/* Modal Player styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16/9;
    position: relative;
}

.modal-iframe {
    width: 100%;
    height: 100%;
    border: 1px solid var(--border-color);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 0.85rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Toast Message */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--text-main);
    color: var(--bg-color);
    padding: 1rem 2rem;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
}

.toast.active {
    transform: translateY(0);
    opacity: 1;
}

/* Footer */
footer {
    margin-top: 8rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
