/* General Reset & Webhard Theme */
:root {
    --bg-main: #f0f2f5;
    --bg-light: #ffffff;
    --primary: #3d63ff;
    --primary-dark: #2a4bbf;
    --text-main: #333;
    --text-light: #f5f5f5;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-size: 14px;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.2s ease;
}
a:hover {
    color: var(--primary-dark);
}

ul { list-style: none; }

.btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background-color: #f8f9fa;
    color: var(--text-main);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    background-color: #e9ecef;
}

/* Header */
.site-header {
    display: flex;
    align-items: center;
    padding: 0 2rem;
    height: 60px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.site-header .logo a {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.site-header .logo i {
    color: var(--primary);
    font-size: 1.8rem;
}



.site-header .user-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Main Layout */
.main-wrapper {
    display: flex;
    padding-top: 60px;
}

.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--bg-light);
    height: calc(100vh - 60px);
    position: fixed;
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 0;
    overflow-y: auto;
}

.main-content {
    flex-grow: 1;
    padding: 1rem 2rem 2rem 2rem;
}

.sidebar + .main-content {
    margin-left: 240px;
}

/* Sidebar Categories */
.category-menu h3 {
    font-size: 0.8rem;
    padding: 0 1.5rem 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.category-menu ul {
    display: flex;
    flex-direction: column;
}
.category-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}
.category-menu a:hover {
    background-color: var(--bg-main);
    color: var(--primary);
}
.category-menu a.active {
    background-color: #e9edff;
    color: #2a4bbf; /* 더 어두운 색상으로 변경하여 대비율 향상 */
    font-weight: 600;
    border-left-color: var(--primary);
}
.category-menu a i {
    font-size: 1.2rem;
}

/* Main Content Area */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.content-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.view-controls .btn-icon {
    background: none;
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
}
.view-controls .btn-icon.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}


/* File List */
.file-list-container {
    background: var(--bg-light);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.file-list-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid #f0f2f5;
    transition: background-color 0.2s;
}
.file-item:last-child {
    border-bottom: none;
}
.file-item:hover {
    background-color: #f8f9fa;
}

.col-check { width: 40px; flex-shrink: 0; text-align: center; }
.col-thumb { width: 60px; flex-shrink: 0; }
.col-thumb a { display: block; transition: opacity 0.2s ease; }
.col-thumb a:hover { opacity: 0.8; }
.col-thumb img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.col-title { flex-grow: 1; padding: 0 1rem; }
.col-title a {
    display: block;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 2px;
}
.col-title a:hover {
    color: var(--primary);
}
.file-category {
    font-size: 0.8rem;
    color: var(--text-main);
    font-weight: 500;
}
.col-size { width: 140px; flex-shrink: 0; text-align: right; font-weight: 500; }

.file-list .empty-state {
    padding: 4rem;
    text-align: center;
    color: var(--text-secondary);
    display: block;
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}
.pagination a, .pagination .ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-light);
}
.pagination a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.pagination a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 600;
}
.pagination .ellipsis {
    border: none;
    background: none;
}

/* Search Toggle Button (모든 화면 크기에서 사용) */
.mobile-search-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.mobile-search-toggle:hover {
    background-color: var(--bg-main);
    border-color: var(--primary);
}

.mobile-search-toggle i {
    color: var(--text-main);
    font-size: 1.1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: var(--bg-main);
    border-color: var(--primary);
}

.mobile-menu-toggle.active {
    background-color: var(--primary);
    border-color: var(--primary);
}

.hamburger-line {
    width: 18px;
    height: 2px;
    background-color: var(--text-main);
    margin: 2px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line {
    background-color: white;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Search Overlay (모든 화면 크기에서 사용) */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    z-index: 1050;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    transform: translateY(-10px);
    opacity: 0;
}

.mobile-search-overlay.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.mobile-search-form {
    width: 100%;
    display: flex;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.mobile-search-overlay input {
    width: 100%;
    border: 2px solid var(--border-color);
    padding: 0.875rem 3rem 0.875rem 1rem;
    border-radius: 12px;
    outline: none;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.mobile-search-overlay input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(61, 99, 255, 0.1);
}

.mobile-search-overlay button {
    background: var(--primary);
    border: none;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.mobile-search-overlay button:hover {
    background: var(--primary-dark);
}

.mobile-search-overlay button i {
    font-size: 1.1rem;
}

/* Backdrop for mobile menu */
.mobile-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    backdrop-filter: blur(2px);
}

.mobile-backdrop.show {
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 1100;
        transition: transform 0.3s ease;
        top: 60px;
        box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content, .sidebar + .main-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    .content-header h1 {
        font-size: 1.5rem;
    }
    .file-list-header, .file-item {
        padding: 0.8rem;
    }
    .col-size {
        width: 90px;
    }
    .col-title {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 0 1rem;
    }
    .user-actions .btn-secondary {
        display: none;
    }
    .col-size {
        display: none;
    }
}

/* Detail Page Styles */
.detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.detail-card {
    background: var(--bg-light);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Mobile Detail Page Optimization */
@media (max-width: 768px) {
    .detail-container {
        max-width: 100%;
        margin: 0;
    }
    
    .detail-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .detail-card:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .detail-card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
}


.detail-header .detail-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.detail-header .detail-meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    color: var(--text-secondary);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* Mobile Detail Header */
@media (max-width: 768px) {
    .detail-header .detail-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .detail-header .detail-meta {
        gap: 1rem;
        padding-top: 0.75rem;
        flex-wrap: nowrap;
    }
}

@media (max-width: 480px) {
    .detail-header .detail-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .detail-header .detail-meta {
        gap: 0.75rem;
        flex-direction: row;
        padding-top: 0.5rem;
        flex-wrap: nowrap;
        font-size: 0.8rem;
    }
}
.detail-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.meta-item i {
    color: var(--primary);
    font-size: 1rem;
}

.detail-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* Detail File List */
.detail-file-list {
    list-style: none;
    padding: 0;
}
.detail-file-list .file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f2f5;
}
.detail-file-list .file-item:last-child {
    border-bottom: none;
}
.file-item .file-icon {
    font-size: 1.8rem;
    color: var(--primary);
    flex-shrink: 0;
}
.file-item .file-info {
    flex: 1;
    min-width: 0;
}
.file-item .file-name {
    font-weight: 500;
    color: var(--text-main);
    white-space: normal;
    word-break: break-all;
}
.file-item .file-size {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Mobile Detail File List */
@media (max-width: 768px) {
    .detail-file-list .file-item {
        gap: 0.75rem;
        padding: 0.6rem 0;
    }
    
    .file-item .file-icon {
        font-size: 1.5rem;
    }
    
    .file-item .file-name {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .file-item .file-size {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .detail-file-list .file-item {
        gap: 0.5rem;
        padding: 0.5rem 0;
        flex-direction: row;
        align-items: flex-start;
    }
    
    .file-item .file-icon {
        font-size: 1.3rem;
        margin-top: 0.2rem;
    }
    
    .file-item .file-name {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .file-item .file-size {
        font-size: 0.75rem;
    }
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

/* Single Video Gallery Layout */
.thumbnail-gallery.single-video {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
    gap: 0;
}

.thumbnail-gallery.single-video .thumbnail-item {
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.thumbnail-gallery.single-video .thumbnail-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.thumbnail-gallery.single-video .thumbnail-image-container {
    aspect-ratio: 16/9;
}

.thumbnail-gallery.single-video .thumbnail-info {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid var(--border-color);
}

.thumbnail-gallery.single-video .thumbnail-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.thumbnail-gallery.single-video .thumbnail-meta {
    font-size: 0.85rem;
    gap: 1rem;
}

/* Enhanced Player Controls for Single Video */
.thumbnail-gallery.single-video .play-button-center {
    width: 100px;
    height: 100px;
    border: 4px solid rgba(255, 255, 255, 0.5);
}

.thumbnail-gallery.single-video .play-button-center i {
    font-size: 40px;
}

.thumbnail-gallery.single-video .player-controls {
    padding: 20px 24px;
    min-height: 60px;
    gap: 20px;
}

.thumbnail-gallery.single-video .control-btn {
    width: 44px;
    height: 44px;
}

.thumbnail-gallery.single-video .control-btn i {
    font-size: 18px;
}

.thumbnail-gallery.single-video .time-display {
    font-size: 15px;
    min-width: 50px;
}

.thumbnail-gallery.single-video .free-watch-text {
    font-size: 14px;
    padding: 8px 16px;
}

.thumbnail-gallery.single-video .progress-bar {
    height: 8px;
}

.thumbnail-item {
    position: relative;
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.thumbnail-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(61, 99, 255, 0.2);
}

/* Special styling for video thumbnails */
.video-thumbnail {
    position: relative;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f8f9fc 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(61, 99, 255, 0.3), rgba(255, 71, 87, 0.2));
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.video-thumbnail:hover::before {
    opacity: 1;
}

.video-thumbnail:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(61, 99, 255, 0.15);
    border-color: transparent;
}

.video-thumbnail .thumbnail-type {
    background: #ffe5e8;
    color: #ff4757;
}

.video-thumbnail .thumbnail-title {
    color: var(--text-main);
    font-weight: 500;
}

.thumbnail-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.thumbnail-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(61, 99, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.thumbnail-item:hover .thumbnail-image-container::after {
    opacity: 1;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(0.95);
}

.thumbnail-item:hover img {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.thumbnail-info {
    padding: 1.5rem;
    background: var(--bg-light);
}

.thumbnail-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thumbnail-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.thumbnail-type {
    background: #e9edff;
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.thumbnail-item:hover .thumbnail-type {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(61, 99, 255, 0.3);
}

.thumbnail-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.thumbnail-item:hover .thumbnail-overlay {
    opacity: 1;
}

/* Mobile Thumbnail Gallery */
@media (max-width: 768px) {
    .thumbnail-gallery {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 0.75rem 0;
    }
    
    .thumbnail-gallery.single-video {
        max-width: 100%;
        padding: 1rem 0;
    }
    
    .thumbnail-gallery.single-video .thumbnail-info {
        padding: 1.5rem;
    }
    
    .thumbnail-gallery.single-video .thumbnail-title {
        font-size: 1.25rem;
    }
    
    .thumbnail-gallery.single-video .play-button-center {
        width: 80px;
        height: 80px;
    }
    
    .thumbnail-gallery.single-video .play-button-center i {
        font-size: 32px;
    }
    
    .thumbnail-gallery.single-video .player-controls {
        padding: 16px 20px;
        min-height: 50px;
        gap: 16px;
    }
    
    .thumbnail-gallery.single-video .control-btn {
        width: 38px;
        height: 38px;
    }
    
    .thumbnail-gallery.single-video .control-btn i {
        font-size: 16px;
    }
    
    .thumbnail-gallery.single-video .time-display {
        font-size: 13px;
        min-width: 45px;
    }
    
    .thumbnail-gallery.single-video .free-watch-text {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .thumbnail-gallery.single-video .progress-bar {
        height: 6px;
    }
    
    .thumbnail-info {
        padding: 1.25rem;
    }
    
    .thumbnail-title {
        font-size: 1rem;
    }
    
    .thumbnail-meta {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .thumbnail-gallery {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0.5rem 0;
    }
    
    .thumbnail-gallery.single-video {
        padding: 0.75rem 0;
    }
    
    .thumbnail-gallery.single-video .thumbnail-item {
        border-radius: 16px;
    }
    
    .thumbnail-gallery.single-video .thumbnail-info {
        padding: 1.25rem;
    }
    
    .thumbnail-gallery.single-video .thumbnail-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .thumbnail-gallery.single-video .thumbnail-meta {
        font-size: 0.9rem;
    }
    
    .thumbnail-gallery.single-video .play-button-center {
        width: 70px;
        height: 70px;
    }
    
    .thumbnail-gallery.single-video .play-button-center i {
        font-size: 28px;
    }
    
    .thumbnail-gallery.single-video .player-controls {
        padding: 14px 16px;
        min-height: 45px;
        gap: 12px;
    }
    
    .thumbnail-gallery.single-video .control-btn {
        width: 34px;
        height: 34px;
    }
    
    .thumbnail-gallery.single-video .control-btn i {
        font-size: 14px;
    }
    
    .thumbnail-gallery.single-video .time-display {
        font-size: 12px;
        min-width: 40px;
    }
    
    .thumbnail-gallery.single-video .free-watch-text {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .thumbnail-gallery.single-video .progress-bar {
        height: 5px;
    }
    
    .thumbnail-item {
        border-radius: 12px;
    }
    
    .thumbnail-info {
        padding: 1rem;
    }
    
    .thumbnail-title {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .thumbnail-meta {
        font-size: 0.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Content HTML */
.content-html {
    line-height: 1.8;
}
.content-html img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Action Buttons */
.detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}
.modal-content-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
}

/* Admin Page Styles */
.admin-wrapper {
    padding-top: 4rem;
    background-color: var(--bg-main);
    min-height: 100vh;
}

.admin-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.admin-header {
    text-align: center;
    margin-bottom: 2rem;
}
.admin-header i {
    font-size: 2.5rem;
    color: var(--primary);
}
.admin-header h1 {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}
.admin-header p {
    color: var(--text-secondary);
}

.server-name-display {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-main);
    border-radius: 6px;
    color: var(--primary);
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.server-name-display i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(61, 99, 255, 0.2);
}

.btn-full {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
}

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1.5rem;
    border: 1px solid transparent;
}
.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-color: #badbcc;
}
.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
}

.current-link {
    background: var(--bg-main);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}
.current-link-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}
.current-link-value {
    font-weight: 500;
    word-break: break-all;
}

.server-info-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.server-info-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
}

.server-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    background: var(--bg-main);
    padding: 1rem;
    border-radius: 6px;
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 500;
    font-size: 0.95rem;
    word-break: break-all;
}

.back-to-site {
    text-align: center;
}
.back-to-site a {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Fix image display issues */
img[src=""], img:not([src]) {
    display: none;
}

/* Loading state for images */
img {
    transition: opacity 0.3s ease;
}

.loading img {
    opacity: 0.7;
}

/* Fix for broken image display */
.file-item img {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
}

/* Grid View Styles */
.file-list-container.grid-view {
    background: transparent;
    box-shadow: none;
}

.file-list-container.grid-view .file-list-header {
    display: none;
}

.file-list-container.grid-view .file-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    padding: 0;
}

.file-list-container.grid-view .file-item {
    display: flex;
    flex-direction: column;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-bottom: none;
}

.file-list-container.grid-view .file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    background-color: var(--bg-light);
}

.file-list-container.grid-view .col-check {
    display: none;
}

.file-list-container.grid-view .col-thumb {
    width: 100%;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.file-list-container.grid-view .col-thumb a {
    display: block;
    width: 100%;
    transition: transform 0.2s ease;
}

.file-list-container.grid-view .col-thumb a:hover {
    transform: scale(1.02);
}

.file-list-container.grid-view .col-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

.file-list-container.grid-view .col-title {
    padding: 0;
    margin-bottom: 0.5rem;
    text-align: center;
}

.file-list-container.grid-view .col-title a {
    font-size: 1.05rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.file-list-container.grid-view .file-category {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.file-list-container.grid-view .col-size {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: auto;
    padding-top: 0.5rem;
}

.file-list-container.grid-view .col-size {
    font-weight: 600;
    color: var(--primary);
}

/* Grid view responsive */
@media (max-width: 768px) {
    .file-list-container.grid-view .file-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .file-list-container.grid-view .col-thumb img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .file-list-container.grid-view .file-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .file-list-container.grid-view .file-item {
        padding: 1rem;
    }
    
    .file-list-container.grid-view .col-thumb img {
        height: 160px;
    }
}

/* Lazy Loading Styles */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

.lazy-image.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Intersection Observer Loading Placeholder */
.img-placeholder {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.8rem;
    min-height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.img-placeholder::before {
    content: "📷";
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Related Content Header */
.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.related-view-controls {
    display: flex;
    gap: 0.5rem;
}

/* Related Content Container */
.related-content-container {
    margin-top: 1rem;
}

/* Related Content Styles - List Format */
.related-content-list {
    display: block;
}

.related-item-list {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.related-item-list:hover {
    background-color: #f8f9fa;
}

.related-item-list:last-child {
    border-bottom: none;
}

.related-thumbnail-small {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.related-thumbnail-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-secondary);
    font-size: 20px;
}

.related-info-list {
    flex: 1;
    min-width: 0;
}

.related-title-list {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.related-title-list a {
    color: var(--text-main);
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-title-list a:hover {
    color: var(--primary);
}

.related-meta-list {
    font-size: 12px;
    color: var(--text-secondary);
}

.related-category {
    background: var(--primary);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.related-size-list {
    color: var(--text-secondary);
    font-size: 12px;
    margin-left: 1rem;
    flex-shrink: 0;
    min-width: 60px;
    text-align: right;
}

/* Related Content Styles - Grid Format */
.related-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.related-item-grid {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-item-grid:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.related-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-thumbnail {
    position: relative;
    width: 100%;
    height: 160px;
    background: #f8f9fa;
    overflow: hidden;
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.related-item-grid:hover .related-thumbnail img {
    transform: scale(1.05);
}

.related-thumbnail .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-secondary);
    font-size: 3rem;
}

.related-info {
    padding: 1rem;
}

.related-title {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.related-size {
    color: var(--text-secondary);
    font-size: 11px;
}

/* Related Content Pagination */
.related-pagination-info {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
}

.related-pagination {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.related-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 40px;
    height: 40px;
}

.related-pagination a:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.related-pagination a.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 500;
}

.related-pagination .ellipsis {
    color: var(--text-secondary);
    padding: 0.5rem;
    font-size: 14px;
}

.related-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-thumbnail {
    position: relative;
    width: 100%;
    height: 160px;
    background: #f8f9fa;
    overflow: hidden;
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.related-item:hover .related-thumbnail img {
    transform: scale(1.05);
}

.related-thumbnail .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    font-size: 2rem;
}

.related-info {
    padding: 1rem;
}

.related-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-main);
}

.related-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.related-category {
    background-color: #e9edff;
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

.related-size {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Responsive for related content */
@media (max-width: 768px) {
    .related-content-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
    
    .related-thumbnail {
        height: 140px;
    }
    
    .related-info {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .related-content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .related-thumbnail {
        height: 120px;
    }
    
    .related-info {
        padding: 0.5rem;
    }
    
    .related-title {
        font-size: 0.85rem;
    }
    
    .related-meta {
        font-size: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 20px;
    left: 250px; /* 사이드바 너비만큼 오프셋 */
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 0 1rem;
}

.floating-actions > a {
    max-width: 450px; /* detail-container의 50% 너비 */
    width: 50%;
}

.floating-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    gap: 0.75rem;
}

.floating-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.floating-btn i {
    font-size: 1.3rem;
}

.floating-btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.floating-btn span {
    font-size: 0.9rem;
    font-weight: 600;
}

.floating-btn small {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 2px;
}

.floating-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.floating-btn-primary:hover {
    color: white;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a3a9e 100%);
}

.floating-btn-secondary {
    background: rgba(108, 117, 125, 0.9);
    color: white;
}

.floating-btn-secondary:hover {
    color: white;
    background: rgba(73, 80, 87, 0.95);
}

/* Responsive floating buttons */
@media (max-width: 992px) and (min-width: 769px) {
    .floating-actions {
        left: 1rem;
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .floating-actions {
        bottom: 1.5rem;
        gap: 0.75rem;
        left: 1rem;
        right: 1rem;
        transform: none;
        width: auto;
        max-width: none;
    }
    
    .floating-btn {
        min-width: 120px;
        padding: 0.875rem 1.25rem;
        border-radius: 40px;
    }
    
    .floating-btn i {
        font-size: 1.2rem;
    }
    
    .floating-btn span {
        font-size: 0.85rem;
    }
    
    .floating-btn small {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .floating-actions {
        bottom: 1rem;
        gap: 0.5rem;
        flex-direction: row;
        left: 1rem;
        right: 1rem;
        transform: none;
        width: auto;
        max-width: none;
    }
    
    .floating-btn {
        flex: 1;
        min-width: auto;
        padding: 0.875rem 1rem;
        border-radius: 30px;
        font-size: 0.85rem;
    }
    
    .floating-btn i {
        font-size: 1.1rem;
    }
    
    .floating-btn span {
        font-size: 0.8rem;
    }
    
    .floating-btn small {
        font-size: 0.65rem;
    }
    
    .floating-btn-content {
        align-items: center;
        text-align: center;
    }
}

/* 모바일 detail 페이지 전체 최적화 */
@media (max-width: 768px) {
    /* 전체 body와 html 오버플로우 방지 */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    /* main-wrapper 오버플로우 방지 */
    .main-wrapper {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    /* main-content 패딩 조정 및 오버플로우 방지 */
    .main-content {
        padding: 1rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    /* detail 페이지 컨테이너 오버플로우 방지 */
    .detail-container {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 !important;
    }
    
    .detail-card {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    /* 썸네일 갤러리 최적화 */
    .thumbnail-gallery {
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    .thumbnail-item {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .thumbnail-item img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
    }
    
    /* content-html 내 모든 요소 최적화 */
    .content-html {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .content-html * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .content-html img,
    .content-html .content-image {
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 1rem auto !important;
    }
    
    /* 인라인 스타일이 있는 이미지도 최적화 */
    .content-html img[style] {
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* iframe 최적화 */
    .content-html iframe {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* 테이블 최적화 */
    .content-html table {
        max-width: 100% !important;
        overflow-x: auto !important;
        display: block !important;
    }
    
    /* pre, code 블록 최적화 */
    .content-html pre,
    .content-html code {
        max-width: 100% !important;
        overflow-x: auto !important;
        word-wrap: break-word !important;
    }
    
    /* 관련 콘텐츠 최적화 */
    .related-content-container {
        width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .related-content-list {
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .related-item-list {
        width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .related-content-grid {
        width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    .related-item-grid {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .related-thumbnail {
        width: 100% !important;
        overflow: hidden !important;
    }
    
    .related-thumbnail img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }
    
    /* 관련 콘텐츠 제목이 길 경우 처리 */
    .related-title-list a,
    .related-title {
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* 파일 이름 줄바꿈 처리 */
    .file-name {
        word-break: break-all !important;
        overflow-wrap: break-word !important;
    }
    
    /* 플로팅 버튼 영역도 화면 밖으로 나가지 않도록 */
    .floating-actions {
        max-width: calc(100vw - 2rem) !important;
        box-sizing: border-box !important;
    }
}

/* 더 작은 화면 (480px 이하) 추가 최적화 */
@media (max-width: 480px) {
    /* main-content 패딩 더 줄이기 */
    .main-content {
        padding: 0.5rem !important;
    }
    
    /* detail-card 패딩 조정 */
    .detail-card {
        padding: 1rem !important;
    }
    
    /* 썸네일 갤러리 1열로 변경 */
    .thumbnail-gallery {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    /* 관련 콘텐츠 그리드 1열로 변경 */
    .related-content-grid {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    /* 관련 콘텐츠 리스트 패딩 조정 */
    .related-item-list {
        padding: 0.5rem !important;
    }
}

/* Video Player Overlay Styles */
.video-player-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    color: white;
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(1px);
}

.video-thumbnail:hover .video-player-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.9) 100%);
    backdrop-filter: blur(2px);
}

.player-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.play-button-center {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.75));
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.play-button-center::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(61, 99, 255, 0.1), rgba(61, 99, 255, 0.05));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-button-center:hover::before {
    opacity: 1;
}

.play-button-center:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.95));
    transform: scale(1.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(61, 99, 255, 0.3);
}

.play-button-center i {
    font-size: 32px;
    color: #333;
    margin-left: 4px;
    position: relative;
    z-index: 1;
}

.player-controls {
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    min-height: 50px;
    backdrop-filter: blur(10px);
}

.video-thumbnail:hover .player-controls {
    background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 50%, transparent 100%);
}

.control-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.control-btn i {
    font-size: 16px;
}

.time-display {
    color: white;
    font-size: 13px;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    min-width: 40px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.progress-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4757, #ff3742);
    border-radius: 3px;
    transition: width 0.2s ease;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.4);
}

.control-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.free-watch-text {
    color: #ff4757;
    font-weight: 700;
    font-size: 12px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.3), rgba(255, 71, 87, 0.2));
    border-radius: 20px;
    border: 1px solid rgba(255, 71, 87, 0.4);
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
}

/* Mobile optimizations for video player overlay */
@media (max-width: 768px) {
    .player-main {
        padding: 1.5rem;
    }
    
    .play-button-center {
        width: 65px;
        height: 65px;
    }
    
    .play-button-center i {
        font-size: 26px;
    }
    
    .player-controls {
        padding: 12px 16px;
        gap: 12px;
        min-height: 45px;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
        padding: 4px;
    }
    
    .control-btn i {
        font-size: 14px;
    }
    
    .time-display {
        font-size: 11px;
        min-width: 35px;
    }
    
    .free-watch-text {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .progress-bar {
        height: 5px;
    }
    
    .control-left, .control-right {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .player-main {
        padding: 1rem;
    }
    
    .play-button-center {
        width: 55px;
        height: 55px;
    }
    
    .play-button-center i {
        font-size: 22px;
    }
    
    .player-controls {
        padding: 10px 12px;
        gap: 8px;
        min-height: 40px;
    }
    
    .control-btn {
        width: 28px;
        height: 28px;
        padding: 4px;
    }
    
    .control-btn i {
        font-size: 12px;
    }
    
    .time-display {
        font-size: 10px;
        min-width: 30px;
    }
    
    .free-watch-text {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .progress-bar {
        height: 4px;
    }
    
    .control-left, .control-right {
        gap: 6px;
    }
}

/* Error Page Styles */
.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.error-card {
    background: var(--bg-light);
    border-radius: 24px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.error-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #ff6b6b, #4ecdc4, var(--primary));
    background-size: 300% 100%;
    animation: errorGradient 3s ease infinite;
}

@keyframes errorGradient {
    0%, 100% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
}

.error-icon-wrapper {
    margin-bottom: 2rem;
}

.error-icon-bg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    animation: errorIconFloat 3s ease-in-out infinite;
}

@keyframes errorIconFloat {
    0%, 100% { transform: translateY(0px) }
    50% { transform: translateY(-10px) }
}

.error-icon-bg::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 50%;
    z-index: -1;
    animation: errorIconRotate 4s linear infinite;
}

@keyframes errorIconRotate {
    0% { transform: rotate(0deg) }
    100% { transform: rotate(360deg) }
}

.error-icon-bg i {
    font-size: 2.5rem;
    color: white;
    z-index: 1;
    position: relative;
}

.error-content {
    text-align: center;
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.error-suggestions {
    background: #f8f9fc;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
    border: 1px solid #e9ecef;
}

.error-suggestions h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-suggestions h3::before {
    content: '💡';
    font-size: 1.2rem;
}

.error-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-suggestions li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.error-suggestions li i {
    color: #28a745;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.error-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.btn-error-primary,
.btn-error-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn-error-primary {
    background: linear-gradient(135deg, var(--primary), #667eea);
    color: white;
    box-shadow: 0 4px 16px rgba(61, 99, 255, 0.3);
}

.btn-error-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #667eea, var(--primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-error-primary:hover::before {
    opacity: 1;
}

.btn-error-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(61, 99, 255, 0.4);
    color: white;
    text-decoration: none;
}

.btn-error-secondary {
    background: rgba(108, 117, 125, 0.1);
    color: var(--text-secondary);
    border: 2px solid rgba(108, 117, 125, 0.2);
}

.btn-error-secondary:hover {
    background: rgba(108, 117, 125, 0.15);
    border-color: rgba(108, 117, 125, 0.3);
    transform: translateY(-2px);
    color: var(--text-main);
}

.btn-error-primary span,
.btn-error-secondary span {
    position: relative;
    z-index: 1;
}

.btn-error-primary i,
.btn-error-secondary i {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
}

/* Error Page Mobile Responsive */
@media (max-width: 768px) {
    .error-container {
        min-height: 50vh;
        padding: 1rem 0;
    }
    
    .error-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin: 0 1rem;
    }
    
    .error-icon-bg {
        width: 80px;
        height: 80px;
    }
    
    .error-icon-bg i {
        font-size: 2rem;
    }
    
    .error-title {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }
    
    .error-message {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .error-suggestions {
        padding: 1.5rem;
        margin: 1.5rem 0;
        border-radius: 12px;
    }
    
    .error-suggestions h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .error-suggestions li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }
    
    .error-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .btn-error-primary,
    .btn-error-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .error-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .error-icon-bg {
        width: 70px;
        height: 70px;
    }
    
    .error-icon-bg i {
        font-size: 1.8rem;
    }
    
    .error-title {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .error-message {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .error-suggestions {
        padding: 1.25rem;
        margin: 1.25rem 0;
    }
    
    .error-suggestions h3 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .error-suggestions h3::before {
        font-size: 1rem;
    }
    
    .error-suggestions li {
        font-size: 0.85rem;
        padding: 0.3rem 0;
        gap: 0.5rem;
    }
    
    .error-suggestions li i {
        font-size: 0.8rem;
    }
    
    .btn-error-primary,
    .btn-error-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        border-radius: 40px;
    }
    
    .btn-error-primary i,
    .btn-error-secondary i {
        font-size: 1rem;
    }
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, var(--bg-light) 0%, #f8f9fc 100%);
    border-top: 1px solid rgba(222, 226, 230, 0.6);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 1.5rem;
    text-align: center;
}

.footer-disclaimer {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(61, 99, 255, 0.08), rgba(61, 99, 255, 0.04));
    border: 1px solid rgba(61, 99, 255, 0.15);
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(61, 99, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.footer-disclaimer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(61, 99, 255, 0.03), transparent);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-disclaimer:hover::before {
    opacity: 1;
}

.footer-disclaimer:hover {
    transform: translateY(-2px);
    border-color: rgba(61, 99, 255, 0.25);
    box-shadow: 0 4px 20px rgba(61, 99, 255, 0.12);
}

.footer-disclaimer i {
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-disclaimer:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.footer-disclaimer span {
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

/* Footer Responsive Styles */
@media (max-width: 768px) {
    .footer-content {
        padding: 1.5rem 1rem 1.25rem;
    }
    
    .footer-disclaimer {
        padding: 0.875rem 1.5rem;
        font-size: 0.85rem;
        gap: 0.5rem;
        border-radius: 40px;
        flex-direction: row;
        text-align: center;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .footer-disclaimer i {
        font-size: 1rem;
    }
    
    .footer-disclaimer span {
        line-height: 1.4;
        word-break: keep-all;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 1.25rem 0.75rem 1rem;
    }
    
    .footer-disclaimer {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
        gap: 0.4rem;
        border-radius: 30px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .footer-disclaimer i {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }
    
    .footer-disclaimer span {
        line-height: 1.3;
        text-align: center;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
}

/* Ensure footer doesn't interfere with floating buttons */
@media (max-width: 768px) {
    .site-footer {
        margin-bottom: 0;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    
    .floating-actions {
        bottom: calc(1.5rem + 80px);
    }
}

@media (max-width: 480px) {
    .floating-actions {
        bottom: calc(1rem + 70px);
    }
}
/* Floating Button Download Style */
.floating-btn-download {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white !important;
}

.floating-btn-download:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    color: white !important;
}

.floating-btn-download i,
.floating-btn-download .btn-text {
    color: white !important;
}

/* 인기검색어 스타일 - 기존 사이트 디자인과 일치 */
.popular-searches {
    margin-top: 2rem;
}

.popular-searches h3 {
    font-size: 0.8rem;
    padding: 0 1.5rem 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.popular-searches-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
}

.popular-searches-list a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    text-decoration: none;
}

.popular-searches-list a:hover {
    background-color: var(--bg-main);
    color: var(--primary);
}

.popular-searches-list a i {
    font-size: 1rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.popular-searches-list a:hover i {
    color: var(--primary);
}

.popular-searches-list a span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 모바일 반응형 */
@media (max-width: 992px) {
    .popular-searches {
        margin-top: 1.5rem;
    }
    
    .popular-searches h3 {
        padding: 0 1rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .popular-searches-list a {
        padding: 0.7rem 1rem;
        gap: 0.8rem;
    }
    
    .popular-searches-list a i {
        font-size: 0.9rem;
    }
}

