@font-face {
    font-family: 'SeoulNotice';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2505-1@1.0/SeoulAlrimTTF-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'SeoulNotice';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2505-1@1.0/SeoulAlrimTTF-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'SeoulNotice';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2505-1@1.0/SeoulAlrimTTF-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'SeoulNotice';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2505-1@1.0/SeoulAlrimTTF-Heavy.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

/* CSS Variables */
:root {
    /* Colors - UNCHANGED per user request */
    --color-primary: #1F8CE6;
    --color-primary-dark: #1a7acc;
    --color-text: #333333;
    --color-text-sub: #999999;
    --color-text-muted: #BBBBBB;
    --color-text-light: #CCCCCC;
    --color-border: #e0e0e0;
    --color-border-light: #F0F0F0;
    --color-bg: #FFFFFF;
    --color-bg-gray: #F5F5F5;

    /* Typography */
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-title: 'SeoulNotice', var(--font-family);
    --font-size-section-title: 20px;
    --font-size-heading: 18px;
    --font-size-subtitle: 14px;
    --font-size-body: 14px;
    --font-size-meta: 12px;
    --font-size-small: 11px;
    --font-size-more: 13px;

    /* Letter Spacing */
    --letter-spacing-default: -0.03em;
    --letter-spacing-tight: -0.05em;

    /* Spacing */
    --spacing-side: 20px;
    --spacing-section: 48px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 24px;

    /* Layout */
    --header-height: 60px;
    --bottom-nav-height: 60px;
    --border-radius: 4px;
    --border-radius-sm: 4px;
    --border-radius-xs: 2px;
    --max-content-width: 1150px;
    --card-gap: 12px;
}

@media (max-width: 768px) {
    :root {
        --spacing-side: 16px;
        /* Increased from 12px for standard app feel */
        --spacing-section: 32px;
        /* Balanced section spacing */
    }
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.5;
    letter-spacing: var(--letter-spacing-default);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: var(--letter-spacing-default);
}

img {
    display: block;
    max-width: 100%;
}

/* ================================================
   Header
   ================================================ */
.header {
    background-color: var(--color-bg);
    height: 72px;
    padding-top: 10px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--spacing-side);
    max-width: var(--max-content-width);
    margin: 0 auto;
    gap: var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-img {
        height: 24px;
        /* Smaller logo on mobile */
    }
}

.header-search {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    max-width: 480px;
}

@media (max-width: 768px) {
    .header-search {
        display: none;
        /* Hide search bar on mobile */
    }
}

.mobile-search-btn {
    display: none !important;
}

.header-plus-btn {
    display: flex;
    /* Visible on PC by default */
}

@media (max-width: 768px) {
    .header-plus-btn {
        display: none !important;
        /* Hide on mobile as there's bottom nav create */
    }

    .mobile-search-btn {
        display: flex !important;
        /* Show search icon on mobile */
    }
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: 44px;
    /* Taller */
    background-color: var(--color-bg-gray);
    border-radius: 8px;
    /* Less rounded */
    transition: background-color 0.15s ease;
    width: 100%;
}

.search-bar:focus-within {
    background-color: #EAEAEA;
}

.search-bar svg {
    flex-shrink: 0;
    color: var(--color-text-sub);
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: var(--font-size-subtitle);
    color: var(--color-text);
    outline: none;
    width: 0;
    /* Allow flex to control width */
}

.search-input::placeholder {
    color: var(--color-text-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-text);
    transition: opacity 0.15s ease;
}

.icon-btn:active {
    opacity: 0.6;
}

/* ================================================
   Desktop Navigation (PC Only)
   ================================================ */
.desktop-nav {
    display: none;
    /* Hidden on mobile */
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

@media (min-width: 769px) {
    .desktop-nav {
        display: block;
    }
}

.desktop-nav-inner {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 var(--spacing-side);
    display: flex;
    align-items: center;
    height: 48px;
    gap: var(--spacing-xl);
}

.nav-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    padding: 10px 0;
    position: relative;
}

.nav-link.active {
    color: var(--color-primary);
}

.nav-link:hover {
    color: var(--color-primary);
}

/* ================================================
   Main Content
   ================================================ */
.main-content {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding-bottom: var(--bottom-nav-height);
}

/* ================================================
   Category Tabs - Tighter spacing, muted inactive
   ================================================ */
.category-tabs {
    padding: 0;
    margin: 12px 0 14px 0;
    /* Slightly increased margin to banner */
}

.tabs-scroll {
    display: flex;
    gap: 4px;
    padding: 0 var(--spacing-side);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs-scroll::-webkit-scrollbar {
    display: none;
}

.tab {
    flex-shrink: 0;
    padding: 6px 14px;
    /* Denser padding */
    font-size: 14px;
    /* More standard size for density */
    font-weight: 600;
    color: var(--color-text-light);
    background: transparent;
    border-radius: 20px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.tab.active {
    color: #FFFFFF;
    background-color: var(--color-primary);
}

.tab:not(.active):active {
    background-color: var(--color-bg-gray);
}

/* ================================================
   Main Banner - Sharp corners, border instead of shadow
   ================================================ */
.main-banner {
    padding: 0 var(--spacing-side);
    position: relative;
}

.banner-container {
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    position: relative;
    /* For numerical indicator */
}

.banner-counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    z-index: 10;
    backdrop-filter: blur(4px);
    letter-spacing: 0.05em;
}

.banner-wrapper {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 300%;
    /* 3 slides */
}

.banner-slide {
    flex-shrink: 0;
    width: 33.333%;
    position: relative;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .banner-image {
        height: 280px;
        /* Reduced height for mobile */
    }
}

.banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-xl);
    /* More padding for larger text */
    background-size: cover;
    background-position: center;
    position: relative;
}

.banner-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 1;
}

.banner-overlay-content {
    color: #FFFFFF;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: var(--font-size-small);
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-sm);
}

.badge-exclusive {
    background-color: var(--color-primary);
    color: #FFFFFF;
}

.badge-new {
    background-color: #FF4757;
    color: #FFFFFF;
}

.banner-title {
    font-family: var(--font-family-title);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 24px;
        margin-bottom: 4px;
    }
}

.banner-desc {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .banner-desc {
        font-size: 13px;
        margin-bottom: var(--spacing-sm);
    }
}

.banner-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: var(--color-primary);
    color: #FFFFFF;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 4px;
    transition: opacity 0.2s ease;
}

.banner-play-btn:active {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .banner-play-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

.banner-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: var(--font-size-meta);
    opacity: 0.8;
}

.difficulty {
    display: flex;
    gap: 2px;
}

.banner-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: var(--spacing-md);
}

.indicator {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background-color: var(--color-border);
    transition: all 0.2s ease;
}

.indicator.active {
    width: 18px;
    background-color: var(--color-primary);
}

/* ================================================
   Icon Menu - More spacing around section
   ================================================ */
.icon-menu {
    display: flex;
    justify-content: space-around;
    padding: var(--spacing-xl) var(--spacing-side);
    margin-top: var(--spacing-section);
    border-bottom: 1px solid var(--color-border);
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background-color: var(--color-bg);
    transition: border-color 0.15s ease;
}

.menu-item:active .menu-icon {
    border-color: var(--color-text-sub);
}

.menu-label {
    font-size: var(--font-size-meta);
    font-weight: 500;
    color: var(--color-text);
}

/* ================================================
   Content Sections - Increased section spacing
   ================================================ */
.content-section {
    padding: var(--spacing-section) var(--spacing-side) 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-family: var(--font-family-title);
    font-size: var(--font-size-section-title);
    font-weight: 800;
    color: var(--color-text);
}

.section-more {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: var(--font-size-more);
    color: #999999;
}

.section-more svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

/* ================================================
   Case Grid - Tighter internal spacing, borders
   ================================================ */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--card-gap);
}

@media (min-width: 1024px) {
    .case-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

.case-card {
    display: flex;
    flex-direction: column;
}

.case-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.case-poster .badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
}

.poster-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poster-icon {
    opacity: 0.3;
}

/* Card info responsiveness */
.case-info {
    padding-top: 8px;
}

.case-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.35;
    letter-spacing: -0.03em;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property */
    -webkit-box-orient: vertical;
}

.case-meta {
    font-size: 11px;
    color: var(--color-text-sub);
    letter-spacing: -0.02em;
}

/* ================================================
   Story List - Tighter internal spacing
   ================================================ */
.story-list {
    display: flex;
    flex-direction: column;
    gap: var(--card-gap);
}

.story-item {
    display: flex;
    gap: var(--spacing-md);
}

.story-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-title {
    font-size: var(--font-size-subtitle);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
}

.story-desc {
    font-size: var(--font-size-meta);
    color: var(--color-text-sub);
    margin-bottom: var(--spacing-xs);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.genre-tag {
    padding: 2px 6px;
    font-size: var(--font-size-small);
    font-weight: 500;
    color: var(--color-primary);
    background-color: rgba(31, 140, 230, 0.1);
    border-radius: var(--border-radius-sm);
}

.chapter-count {
    font-size: var(--font-size-small);
    color: var(--color-text-sub);
}

/* ================================================
   Ranking List - 30% shorter rows, bold ranks
   ================================================ */
.ranking-list {
    display: flex;
    flex-direction: column;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.ranking-item:last-child {
    border-bottom: none;
}

.rank {
    flex-shrink: 0;
    width: 24px;
    font-size: 15px;
    font-weight: 800;
    color: var(--color-text);
    text-align: center;
}

.rank-1 {
    color: #FFB800;
}

.rank-2 {
    color: #8E8E93;
}

.rank-3 {
    color: #CD7F32;
}

.ranking-info {
    flex: 1;
    min-width: 0;
    margin-left: 12px;
}

.ranking-title {
    font-size: var(--font-size-subtitle);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-meta {
    font-size: var(--font-size-meta);
    color: var(--color-text-sub);
}

.ranking-trend {
    flex-shrink: 0;
    font-size: var(--font-size-meta);
    font-weight: 500;
    margin-left: var(--spacing-md);
}

.ranking-trend.up {
    color: #FF4757;
}

.ranking-trend.down {
    color: var(--color-primary);
}

.ranking-trend.same {
    color: var(--color-text-sub);
}

.ranking-trend.new {
    color: #FF4757;
}

/* ================================================
   Ranking Scroll - Poster Style Cards
   ================================================ */
.ranking-scroll {
    margin: 0 calc(var(--spacing-side) * -1);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ranking-scroll::-webkit-scrollbar {
    display: none;
}

/* ================================================
   K-Platform Standard Ranking List (Vertical)
   ================================================ */
.ranking-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    column-gap: 32px;
}

@media (min-width: 769px) {
    .ranking-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ranking-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    gap: 12px;
    border-bottom: 1px solid var(--color-border-light);
}

.ranking-item:last-child {
    border-bottom: none;
}

.rank-num {
    flex-shrink: 0;
    width: 28px;
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text);
    text-align: center;
}

.rank-1 .rank-num {
    color: #FFB800;
}

.rank-2 .rank-num {
    color: #8E8E93;
}

.rank-3 .rank-num {
    color: #CD7F32;
}

.rank-thumb {
    width: 64px;
    height: 84px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rank-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta {
    font-size: 12px;
    color: var(--color-text-sub);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rank-trend {
    font-size: 11px;
    font-weight: 600;
    margin-left: auto;
}

.rank-trend.up {
    color: #FF4757;
}

.rank-trend.down {
    color: #1F8CE6;
}

.rank-trend.new {
    color: #FF4757;
}

/* ================================================
   Horizontal Scroll - Tighter gap, smaller radius
   ================================================ */
.horizontal-scroll {
    margin: 0 calc(var(--spacing-side) * -1);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.scroll-track {
    display: flex;
    gap: var(--card-gap);
    padding: 0 var(--spacing-side);
}

.mini-card {
    flex-shrink: 0;
    width: 100px;
    text-align: center;
}

.mini-poster {
    width: 100px;
    height: 130px;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-xs);
}

.mini-title {
    font-size: var(--font-size-meta);
    color: var(--color-text);
    letter-spacing: var(--letter-spacing-tight);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Footer Spacer */
.footer-spacer {
    height: var(--spacing-section);
}

/* ================================================
   Bottom Navigation - Larger icons, tighter gap
   ================================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    height: var(--bottom-nav-height);
    /* Ensure this is fixed at 60px */
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding-bottom: env(safe-area-inset-bottom, 0);
    overflow: hidden;
    contain: layout paint;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--color-text-sub);
    font-size: var(--font-size-small);
    transition: color 0.15s ease;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    transition: all 0.2s ease;
}

.nav-item.active {
    color: var(--color-primary);
}

/* Simulate Filled Icon for Active State */
.nav-item.active svg path,
.nav-item.active svg circle,
.nav-item.active svg polyline,
.nav-item.active svg rect {
    fill: currentColor;
    stroke-width: 0;
}

/* Exceptions for items that should remain lines or have special shapes */
.nav-item.active svg line {
    stroke-width: 2.5px;
}

.nav-item span {
    font-weight: 500;
}

/* ================================================
   Explore Page Specific Styles
   ================================================ */
.genre-carousel {
    display: flex;
    overflow-x: auto;
    gap: var(--card-gap);
    padding: 0 0 32px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.genre-carousel::-webkit-scrollbar {
    display: none;
}

.genre-carousel-item {
    flex: 0 0 120px;
    /* Base width for mobile carousel */
    display: flex;
    flex-direction: column;
    text-decoration: none;
    scroll-snap-align: start;
}

.genre-thumb {
    width: 100%;
    aspect-ratio: 891 / 1260;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--color-bg-gray);
    border: 1px solid var(--color-border-light);
}

.genre-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover effect removed as requested */

.work-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.options-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    color: var(--color-text-sub);
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.options-btn:hover {
    color: var(--color-text);
}

/* Edit Modal Enhancements */
.edit-modal {
    max-width: 500px;
    border-radius: 12px;
}

.image-upload-placeholder {
    width: 100px;
    aspect-ratio: 1 / 1.4;
    border: 1px dashed var(--color-border);
    border-radius: 4px;
    background-color: var(--color-bg-gray);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.upload-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--color-text-sub);
    font-size: 11px;
    background-color: rgba(255, 255, 255, 0.4);
    transition: background-color 0.2s ease;
}

.image-upload-placeholder:hover .upload-overlay {
    background-color: rgba(255, 255, 255, 0.6);
    color: var(--color-primary);
}

.modal-close {
    font-size: 24px;
    color: var(--color-text-sub);
    line-height: 1;
}

/* Form refinement */
.form-input {
    font-family: inherit;
    border-color: var(--color-border);
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(31, 140, 230, 0.1);
}

@media (max-width: 480px) {
    .edit-modal {
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
        margin: 0;
    }
}

.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    display: inline-flex;
    padding: 8px 16px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.15s ease;
}

.tag-pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: rgba(31, 140, 230, 0.05);
}

.sort-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-sub);
}

.sort-filter span {
    cursor: pointer;
}

.sort-filter span.active {
    color: var(--color-text);
    font-weight: 700;
}

/* ================================================
   Create Page Specific Styles
   ================================================ */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px var(--spacing-side) 40px;
    background-color: var(--color-bg);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid var(--color-border);
}

.profile-name {
    font-family: var(--font-family-title);
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 4px;
}

.profile-bio {
    font-size: 13px;
    color: var(--color-text-sub);
    margin-bottom: 20px;
}

.btn-ghost-primary {
    background-color: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 10px 20px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-ghost-primary:active {
    background-color: rgba(31, 140, 230, 0.05);
    transform: scale(0.98);
}

/* Create Page Tabs */
.create-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
    position: sticky;
    top: var(--header-height);
    background-color: #FFFFFF;
    /* Matches create page body bg */
    z-index: 10;
}

.create-tab {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 14px;
    color: var(--color-text-sub);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.create-tab.active {
    color: var(--color-text);
    font-weight: 700;
}

.create-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #000000;
}

/* Work Card Customization for Create Page */
.work-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: var(--color-text);
}

.work-poster {
    width: 100%;
    aspect-ratio: 1 / 1.4;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Subtle shadow for white BG */
}

.work-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.work-date {
    font-size: 12px;
    color: var(--color-text-sub);
}

.work-status {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 2px;
    backdrop-filter: blur(4px);
}

@media (min-width: 769px) {
    .genre-carousel {
        padding: 20px 0 40px;
        gap: var(--card-gap);
    }

    .genre-carousel-item {
        flex: 0 0 160px;
    }
}

/* ================================================
   Carousel & Scroll Navigation Buttons (< >)
   ================================================ */
.scroll-container-wrapper {
    position: relative;
    width: 100%;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    /* Hidden by default, show on PC */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s ease;
    color: var(--color-text);
}

.nav-btn:hover {
    background-color: #FFFFFF;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.nav-btn:active {
    opacity: 0.6;
}

.nav-btn.prev {
    left: -20px;
}

.nav-btn.next {
    right: -20px;
}

.nav-btn svg {
    width: 20px;
    height: 20px;
}

/* Banner specific nav buttons */
.main-banner .nav-btn {
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    color: #FFFFFF;
    backdrop-filter: blur(4px);
}

.main-banner .nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.main-banner .nav-btn:active {
    opacity: 0.7;
}

.main-banner .nav-btn.prev {
    left: 24px;
}

.main-banner .nav-btn.next {
    right: 24px;
}

@media (min-width: 1024px) {
    .nav-btn {
        display: flex;
    }
}

/* ================================================
   Responsive Adjustments
   ================================================ */
@media (min-width: 481px) {
    .case-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 769px) {
    :root {
        --spacing-side: 24px;
    }

    .case-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .bottom-nav {
        display: none;
    }
}

/* ================================================
   Footer Style
   ================================================ */
.footer {
    background-color: #FFFFFF;
    padding: 80px var(--spacing-side) 120px;
    border-top: 1px solid var(--color-border-light);
}

.footer-inner {
    max-width: var(--max-content-width);
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 13px;
    font-weight: 600;
}

.footer-links a {
    color: var(--color-text);
}

.footer-divider {
    color: var(--color-border);
    font-size: 10px;
}

.footer-info {
    font-size: 12px;
    color: var(--color-text-sub);
    line-height: 1.8;
}

.footer-info p {
    margin-bottom: 4px;
}

.footer-info .copyright {
    margin-top: 12px;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .footer {
        padding: 40px var(--spacing-side) 60px;
    }

    .footer-links {
        gap: 8px;
    }
}

.main-content {
    padding-bottom: var(--spacing-section);
}

.footer-spacer {
    display: none;
}

/* ================================================
   Comments & Community
   ================================================ */
.comment-section {
    padding-top: 24px;
}

.comment-input-box {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
}

.comment-input-box .avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.comment-input-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 14px;
    outline: none;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comment-item {
    display: flex;
    gap: 12px;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-user {
    font-size: 13px;
    font-weight: 700;
}

.comment-date {
    font-size: 11px;
    color: var(--color-text-muted);
}

.comment-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.comment-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.comment-action-btn {
    font-size: 11px;
    color: var(--color-text-sub);
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Report Button Style */
.btn-report {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-text-muted);
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-report:hover {
    color: #ff4d4f;
}

@media (min-width: 1080px) {
    .case-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}