:root {
    /* 브랜드 컬러 */
    --primary-color: #6400ff;
    --primary-light: #a855f7;
    --primary-dark: #4c0099;
    
    /* 배경 색상 */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a0a2e;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-overlay: rgba(10, 10, 10, 0.95);
    --bg-header: rgba(10, 10, 10, 0.2);
    --bg-footer: rgba(10, 10, 10, 0.9);
    --bg-hero-overlay: rgba(0, 0, 0, 0.7);
    --badge-new: #ff6b6b;
    
    /* 텍스트 색상 */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-disabled: rgba(255, 255, 255, 0.5);
    --text-accent: var(--primary-color);
    
    /* 테두리 색상 */
    --border-primary: rgba(100, 0, 255, 0.2);
    --border-secondary: rgba(100, 0, 255, 0.1);
    --border-hover: var(--primary-color);
    --border-light: rgba(255, 255, 255, 0.1);
    
    /* 그라데이션 */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-text: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    --gradient-bg: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    --gradient-overlay: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    
    /* 그림자 */
    --shadow-small: 0 4px 20px rgba(100, 0, 255, 0.15);
    --shadow-medium: 0 8px 30px rgba(100, 0, 255, 0.2);
    --shadow-large: 0 12px 40px rgba(100, 0, 255, 0.25);
    
    /* 평점 색상 */
    --rating-gold: #ffd700;
    --rating-bg: rgba(255, 215, 0, 0.1);
}

::-webkit-scrollbar {
  display: none;
}

html {
  scrollbar-width: none;
}

.scroll-container {
  overflow: auto;
  scrollbar-width: none;
}
.scroll-container::-webkit-scrollbar {
  display: none;
}

@font-face {
    font-family: 'Gyeonggi_Title_Medium';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2410-3@1.0/Title_Medium.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Gyeonggi_Title_Medium';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2410-3@1.0/Title_Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Gyeonggi_Title_Medium';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2410-3@1.0/Title_Medium.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Gyeonggi_Title_Medium';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2410-3@1.0/Title_Medium.woff') format('woff');
    font-weight: 800;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Gyeonggi_Title_Medium', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: none;
    padding-left: calc((100vw - 1280px) / 2);
    padding-right: calc((100vw - 1280px) / 2);
}

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-primary);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo a {
    text-decoration: none;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-primary);
    border-radius: 25px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.15);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.profile-btn {
    padding: 0.5rem 1rem;
    background: rgba(100, 0, 255, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.content-hero {
    position: relative;
    padding: 8rem 0 4rem;
    min-height: 70vh;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.3;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-hero-overlay);
    z-index: -1;
}

.content-main {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.content-poster-large {
    position: relative;
    width: 300px;
    height: 450px;
    background: var(--gradient-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-large);
}

.poster-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(100, 0, 255, 0.3) 100%);
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--text-accent);
}

.breadcrumb span {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

.profile-create-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.content-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-meta {
    margin-bottom: 2rem;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rating-score {
    font-size: 2rem;
    font-weight: 800;
    color: var(--rating-gold);
    background: var(--rating-bg);
    padding: 0.5rem 1rem;
    border-radius: 15px;
}

.rating-stars {
    color: var(--rating-gold);
    font-size: 1.2rem;
}

.rating-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.content-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.3rem 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.content-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-accent);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-light);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.btn-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    color: var(--text-primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.content-info {
    padding: 4rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.info-section {
    margin-bottom: 3rem;
}

.info-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-accent);
}

.info-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Characters */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.character-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.character-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.character-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    margin: 0 auto 1rem;
}

.character-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.character-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.character-voice {
    font-size: 0.8rem;
    color: var(--text-accent);
}

.episode-list {
    margin-bottom: 2rem;
}

.episode-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 15px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.episode-item:hover {
    border-color: var(--primary-color);
    background: rgba(100, 0, 255, 0.05);
    transform: translateX(5px);
}

.episode-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.episode-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.episode-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.episode-duration {
    font-size: 0.8rem;
    color: var(--text-accent);
    font-weight: 500;
}

.sidebar-section {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-accent);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-light);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item span {
    font-size: 0.8em;
}

.info-label {
    color: var(--text-muted);
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
    text-overflow: ellipsis;
}

.related-info {
    min-width: 0;
    flex: 1;
}

.related-info h4 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.related-info span {
    display: block;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    line-clamp: 4;
    line-height: 1;
    font-size: 12px;
}

.related-info .related-year {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.related-poster {
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-item:hover {
    background: rgba(100, 0, 255, 0.05);
    transform: translateX(5px);
}

.related-poster {
    width: 60px;
    height: 90px;
    background: var(--gradient-primary);
    border-radius: 8px;
    flex-shrink: 0;
}

.related-info h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.related-year {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.reviews-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.rating-large {
    font-size: 4rem;
    font-weight: 800;
    color: var(--rating-gold);
}

.stars-large {
    color: var(--rating-gold);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.rating-detail span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.reviews-list {
    margin-bottom: 2rem;
}

.review-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.review-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-small);
    cursor: pointer;
}

.reviewer-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    flex-shrink: 0;
}

.reviewer-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.review-rating {
    color: var(--rating-gold);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-actions {
    display: flex;
    gap: 1rem;
}

.review-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-accent);
    background: rgba(100, 0, 255, 0.05);
}

.profile-image-container,
.profile-banner-container {
    display: flex;
    gap: 20px;
    align-items: center;
    overflow-x: auto;
    overflow-y: visible;
}

.profile-image-container > div:first-child,
.profile-banner-container > div:first-child {
    flex: 0 0 240px;
    min-width: 240px;
}

.drop-zone {
    height: 260px;
    background: #1b1b1b;
    border: 2px dashed #666;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #aaa;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 10px;
    width: 100%;
}

.preview-image {
    max-height: 260px;
    overflow-x: auto;
    border-radius: 10px;
    display: none;
}

.footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border-primary);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--text-accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--text-accent);
}

.footer-section p {
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-secondary);
    color: var(--text-disabled);
}