/* assets/css/style.css - 完整样式文件 */

/* ===== 基础样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Microsoft YaHei','PingFang SC',sans-serif; background: #f5f6fa; color: #333; line-height: 1.6; }
a { color: #3498db; text-decoration: none; }
a:hover { color: #2980b9; }

/* ===== 容器 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ===== 导航 ===== */
header { background: #2c3e50; color: #fff; position: sticky; top: 0; z-index: 999; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
nav .container { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; flex-wrap: wrap; gap: 10px; }
.logo a { color: #fff; font-size: 24px; font-weight: bold; text-decoration: none; }
.logo a:hover { color: #ecf0f1; }
.nav-menu { display: flex; list-style: none; gap: 5px; flex-wrap: wrap; }
.nav-menu a { color: #ecf0f1; text-decoration: none; padding: 6px 14px; border-radius: 4px; transition: 0.3s; font-size: 14px; }
.nav-menu a:hover { background: #34495e; }
.nav-menu a.active { background: #3498db; }
.user-menu { display: flex; gap: 5px; flex-wrap: wrap; }
.user-menu a { color: #ecf0f1; text-decoration: none; padding: 6px 14px; border-radius: 4px; transition: 0.3s; font-size: 14px; }
.user-menu a:hover { background: #34495e; }

/* ===== 页脚 ===== */
footer { background: #2c3e50; color: #ecf0f1; text-align: center; padding: 20px 0; margin-top: 40px; }
footer p { font-size: 14px; }

/* ===== 按钮 ===== */
.btn { display: inline-block; padding: 10px 20px; background: #3498db; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; transition: 0.3s; text-decoration: none; text-align: center; }
.btn:hover { background: #2980b9; color: #fff; transform: translateY(-1px); }
.btn-primary { background: #3498db; }
.btn-primary:hover { background: #2980b9; }
.btn-success { background: #2ecc71; }
.btn-success:hover { background: #27ae60; }
.btn-danger { background: #e74c3c; }
.btn-danger:hover { background: #c0392b; }
.btn-secondary { background: #95a5a6; }
.btn-secondary:hover { background: #7f8f8d; }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ===== 表单 ===== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 14px; color: #555; }
.form-control { width: 100%; padding: 10px 14px; border: 2px solid #e0e0e0; border-radius: 6px; font-size: 14px; transition: 0.3s; background: #fff; }
.form-control:focus { border-color: #3498db; outline: none; box-shadow: 0 0 0 3px rgba(52,152,219,0.1); }
.form-control:disabled { background: #f5f5f5; cursor: not-allowed; }
select.form-control { appearance: auto; }
textarea.form-control { resize: vertical; min-height: 80px; }
small { display: block; color: #999; font-size: 12px; margin-top: 4px; }

/* ===== 卡片 ===== */
.card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); margin-bottom: 20px; }
.card h3 { margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #f0f0f0; }

/* ===== 表格 ===== */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { background: #f8f9fa; padding: 10px 12px; border: 1px solid #e0e0e0; text-align: left; font-weight: 600; }
.table td { padding: 10px 12px; border: 1px solid #e0e0e0; vertical-align: middle; }
.table-striped tbody tr:nth-child(odd) { background: #fafafa; }
.table-hover tbody tr:hover { background: #f0f8ff; }

/* ===== 消息提示 ===== */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 15px; }
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #2ecc71; }
.alert-danger { background: #f8d7da; color: #721c24; border-left: 4px solid #e74c3c; }
.alert-warning { background: #fff3cd; color: #856404; border-left: 4px solid #f39c12; }
.alert-info { background: #d1ecf1; color: #0c5460; border-left: 4px solid #3498db; }

/* ===== 首页样式 ===== */
.hero { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; padding: 40px 0; text-align: center; border-radius: 8px; margin: 20px 0; }
.hero h1 { font-size: 32px; margin-bottom: 10px; }
.hero p { opacity: 0.9; font-size: 16px; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; padding: 25px 0; }
.photo-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: 0.3s; }
.photo-card:hover { transform: translateY(-5px); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.photo-card a { text-decoration: none; color: #333; }
.photo-card .img-wrapper { position: relative; }
.photo-card .img-wrapper img { width: 100%; height: 220px; object-fit: cover; display: block; }
.photo-card .img-wrapper .badge { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.7); color: #fff; padding: 2px 10px; border-radius: 12px; font-size: 12px; }
.photo-info { padding: 15px; }
.photo-info h3 { font-size: 16px; margin-bottom: 5px; }
.photo-info .category { color: #888; font-size: 13px; }
.photo-info .meta { display: flex; justify-content: space-between; font-size: 12px; color: #999; margin-top: 8px; }

/* ===== 等级标签 ===== */
.level-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; }
.level-1 { background: #3498db; color: #fff; }
.level-2 { background: #f39c12; color: #fff; }
.level-badge.level-1 { background: #3498db; color: #fff; }
.level-badge.level-2 { background: #f39c12; color: #fff; }

/* ===== 分页 ===== */
.pagination { display: flex; justify-content: center; gap: 5px; padding: 20px 0; }
.pagination a, .pagination span { padding: 8px 15px; background: #fff; border: 1px solid #ddd; text-decoration: none; color: #333; border-radius: 4px; }
.pagination a:hover { background: #f5f5f5; }
.pagination .active { background: #3498db; color: #fff; border-color: #3498db; }
.pagination .disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== 空状态 ===== */
.empty { text-align: center; padding: 60px 20px; color: #999; }
.empty .icon { font-size: 48px; margin-bottom: 15px; }

/* ===== 面包屑 ===== */
.breadcrumb { font-size: 13px; color: #999; margin: 15px 0; }
.breadcrumb a { color: #3498db; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 6px; color: #ccc; }

/* ===== 写真详情页 ===== */
.photo-detail { max-width: 1000px; margin: 20px auto 30px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.photo-detail .image-wrapper { background: #1a1a2e; text-align: center; padding: 20px; position: relative; }
.photo-detail .image-wrapper .main-image { max-width: 100%; max-height: 70vh; object-fit: contain; border-radius: 4px; }

/* 导航箭头 */
.nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: #fff; border: none; border-radius: 50%; width: 44px; height: 44px; font-size: 22px; cursor: pointer; transition: 0.3s; z-index: 10; }
.nav-arrow:hover { background: rgba(0,0,0,0.8); }
.nav-arrow.prev { left: 15px; }
.nav-arrow.next { right: 15px; }

/* 图片计数器 */
.image-counter { position: absolute; bottom: 35px; right: 35px; background: rgba(0,0,0,0.6); color: #fff; padding: 4px 14px; border-radius: 20px; font-size: 13px; }

/* 全屏按钮 */
.fullscreen-btn { position: absolute; bottom: 35px; left: 35px; background: rgba(0,0,0,0.6); color: #fff; border: none; padding: 10px 18px; border-radius: 8px; cursor: pointer; font-size: 14px; transition: 0.3s; display: flex; align-items: center; gap: 8px; z-index: 10; }
.fullscreen-btn:hover { background: rgba(0,0,0,0.8); transform: scale(1.05); }

/* 自动播放指示器 */
.auto-play-indicator { position: absolute; top: 35px; right: 35px; background: rgba(0,0,0,0.5); color: rgba(255,255,255,0.8); padding: 4px 12px; border-radius: 20px; font-size: 12px; display: none; z-index: 10; }
.auto-play-indicator.active { display: block; animation: pulse 1.5s ease-in-out infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* 缩略图导航 */
.thumbnail-nav { display: flex; gap: 10px; justify-content: center; padding: 15px 20px; background: #f8f9fa; flex-wrap: wrap; }
.thumbnail-nav .thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 3px solid transparent; transition: 0.3s; opacity: 0.7; }
.thumbnail-nav .thumb:hover { opacity: 1; }
.thumbnail-nav .thumb.active { border-color: #3498db; opacity: 1; }

/* 写真信息 */
.photo-detail .info { padding: 25px 30px; }
.photo-detail .info h1 { font-size: 24px; color: #2c3e50; margin-bottom: 10px; }
.photo-detail .info .meta { display: flex; gap: 20px; flex-wrap: wrap; color: #888; font-size: 14px; margin-bottom: 15px; }
.photo-detail .info .meta span { display: flex; align-items: center; gap: 5px; }
.photo-detail .info .description { color: #555; line-height: 1.8; padding: 15px 0; border-top: 1px solid #f0f0f0; margin-top: 10px; }

/* 相关推荐 */
.related-section { max-width: 1000px; margin: 30px auto; }
.related-section h3 { margin-bottom: 15px; color: #2c3e50; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; }
.related-item { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: 0.3s; }
.related-item:hover { transform: translateY(-3px); box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.related-item a { text-decoration: none; color: #333; }
.related-item img { width: 100%; height: 150px; object-fit: cover; }
.related-item .title { padding: 10px; font-size: 14px; text-align: center; }

/* ===== 全屏播放器 ===== */
.fullscreen-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 9999; justify-content: center; align-items: center; flex-direction: column; }
.fullscreen-overlay.active { display: flex; }
.fullscreen-overlay .fs-image { max-width: 90%; max-height: 80vh; object-fit: contain; border-radius: 4px; transition: opacity 0.3s ease; }
.fullscreen-overlay .fs-counter { position: absolute; top: 30px; right: 30px; color: rgba(255,255,255,0.7); font-size: 16px; background: rgba(0,0,0,0.5); padding: 6px 16px; border-radius: 20px; }
.fullscreen-overlay .fs-title { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.8); font-size: 18px; background: rgba(0,0,0,0.5); padding: 8px 24px; border-radius: 8px; max-width: 80%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fs-close-btn { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 28px; cursor: pointer; padding: 10px 16px; border-radius: 50%; transition: 0.3s; z-index: 20; }
.fs-close-btn:hover { background: rgba(255,255,255,0.25); transform: rotate(90deg); }

.fs-nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); border: none; border-radius: 50%; width: 56px; height: 56px; font-size: 28px; cursor: pointer; transition: 0.3s; z-index: 15; }
.fs-nav-arrow:hover { background: rgba(255,255,255,0.2); color: #fff; }
.fs-nav-arrow.fs-prev { left: 30px; }
.fs-nav-arrow.fs-next { right: 30px; }

.fs-controls { position: absolute; bottom: 100px; left: 50%; transform: translateX(-50%); display: flex; gap: 20px; align-items: center; background: rgba(0,0,0,0.6); padding: 12px 24px; border-radius: 50px; backdrop-filter: blur(10px); }
.fs-controls button { background: none; border: none; color: rgba(255,255,255,0.8); font-size: 24px; cursor: pointer; transition: 0.3s; padding: 5px 10px; border-radius: 4px; }
.fs-controls button:hover { color: #fff; background: rgba(255,255,255,0.1); }
.fs-controls .play-btn { font-size: 32px; width: 50px; }
.fs-controls .progress-container { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.fs-controls .progress-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.3); border-radius: 2px; cursor: pointer; position: relative; min-width: 100px; }
.fs-controls .progress-bar .progress-fill { height: 100%; background: #3498db; border-radius: 2px; width: 0%; transition: width 0.1s; }
.fs-controls .time-display { color: rgba(255,255,255,0.7); font-size: 13px; font-variant-numeric: tabular-nums; min-width: 60px; text-align: center; }

/* ===== 登录/注册页面 ===== */
.login-container { max-width: 420px; margin: 60px auto; }
.login-card { background: #fff; border-radius: 20px; padding: 45px 40px 40px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.login-header { text-align: center; margin-bottom: 35px; }
.login-header .logo { font-size: 48px; margin-bottom: 10px; }
.login-header h1 { font-size: 24px; color: #2c3e50; font-weight: 700; margin-bottom: 5px; }
.login-header p { color: #95a5a6; font-size: 14px; }
.login-header .site-name { color: #667eea; font-weight: 600; }

/* ===== 会员中心 ===== */
.member-layout { display: grid; grid-template-columns: 260px 1fr; gap: 25px; padding: 20px 0; }
.member-sidebar { background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); padding: 20px; height: fit-content; position: sticky; top: 80px; }
.member-avatar { text-align: center; padding-bottom: 15px; border-bottom: 2px solid #f0f0f0; }
.member-avatar img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #f0f0f0; }
.member-avatar .name { font-size: 18px; font-weight: bold; margin-top: 10px; }
.member-avatar .level { font-size: 13px; color: #888; }
.member-menu { margin-top: 15px; }
.member-menu a { display: flex; align-items: center; padding: 10px 12px; border-radius: 6px; color: #555; text-decoration: none; transition: 0.3s; margin-bottom: 5px; }
.member-menu a:hover, .member-menu a.active { background: #f0f8ff; color: #3498db; }
.member-menu a .icon { margin-right: 10px; font-size: 18px; }
.member-content { background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); padding: 25px; }
.member-content h2 { margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #f0f0f0; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    nav .container { flex-direction: column; align-items: stretch; }
    .nav-menu { justify-content: center; }
    .user-menu { justify-content: center; }
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
    .photo-card .img-wrapper img { height: 160px; }
    .hero { padding: 25px 0; }
    .hero h1 { font-size: 24px; }
    .member-layout { grid-template-columns: 1fr; }
    .member-sidebar { position: static; }
    
    /* 写真详情响应式 */
    .photo-detail .info { padding: 15px 18px; }
    .photo-detail .info h1 { font-size: 20px; }
    .photo-detail .image-wrapper { padding: 10px; }
    .thumbnail-nav .thumb { width: 50px; height: 50px; }
    .related-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .related-item img { height: 120px; }
    .nav-arrow { width: 32px; height: 32px; font-size: 16px; }
    
    /* 全屏响应式 */
    .fs-controls { padding: 10px 16px; gap: 12px; flex-wrap: wrap; justify-content: center; bottom: 80px; }
    .fs-controls .progress-container { min-width: 120px; }
    .fs-nav-arrow { width: 40px; height: 40px; font-size: 20px; }
    .fs-nav-arrow.fs-prev { left: 10px; }
    .fs-nav-arrow.fs-next { right: 10px; }
    .fullscreen-overlay .fs-title { font-size: 14px; padding: 4px 12px; bottom: 15px; white-space: normal; }
    .fs-close-btn { top: 10px; right: 10px; font-size: 22px; padding: 6px 12px; }
    .fullscreen-btn { bottom: 15px; left: 15px; padding: 6px 12px; font-size: 12px; }
    .image-counter { bottom: 15px; right: 15px; font-size: 11px; padding: 2px 10px; }
    
    /* 登录响应式 */
    .login-card { padding: 30px 24px 28px; border-radius: 16px; }
    .login-header .logo { font-size: 36px; }
    .login-header h1 { font-size: 20px; }
    .form-group input { padding: 12px 14px 12px 10px; font-size: 14px; }
    .btn-login { padding: 12px; font-size: 15px; }
    .form-options { flex-direction: column; gap: 10px; align-items: flex-start; }
}
/* ===== 缩略图一行显示+滚动 ===== */
.thumbnail-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 0;
    background: #f8f9fa;
    gap: 0;
    overflow: hidden;
    max-height: 90px;
}

.thumbnail-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    flex: 1;
    padding: 0 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    min-width: 0;
}
.thumbnail-nav::-webkit-scrollbar {
    display: none;
}

.thumbnail-nav .thumb {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    border-radius: 6px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: 0.3s;
    opacity: 0.6;
    flex-shrink: 0;
    background: #e8ecf0;
    object-fit: cover;
}
.thumbnail-nav .thumb:hover {
    opacity: 0.9;
}
.thumbnail-nav .thumb.active {
    border-color: #3498db;
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.2);
}

.thumb-scroll-btn {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    flex-shrink: 0;
    margin: 0 4px;
}
.thumb-scroll-btn:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.05);
}
.thumb-scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}
.thumb-scroll-btn.left {
    margin-right: 4px;
}
.thumb-scroll-btn.right {
    margin-left: 4px;
}

/* ===== 全屏播放器样式 ===== */
.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: none;
}
.fullscreen-overlay.active {
    display: flex;
}
.fullscreen-overlay.show-controls {
    cursor: default;
}
.fullscreen-overlay .fs-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
}
.fs-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 50%;
    transition: 0.3s;
    z-index: 20;
    opacity: 0;
}
.fullscreen-overlay.show-controls .fs-close-btn {
    opacity: 0.6;
}
.fs-close-btn:hover {
    background: rgba(255,255,255,0.25);
    opacity: 1 !important;
    transform: rotate(90deg);
}
.fs-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    background: rgba(0,0,0,0.3);
    padding: 4px 16px;
    border-radius: 20px;
    z-index: 20;
    opacity: 0;
}
.fullscreen-overlay.show-controls .fs-counter {
    opacity: 1;
}
.fs-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.3);
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 28px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 15;
    opacity: 0;
}
.fullscreen-overlay.show-controls .fs-nav-arrow {
    opacity: 1;
}
.fs-nav-arrow:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.fs-nav-arrow.fs-prev { left: 20px; }
.fs-nav-arrow.fs-next { right: 20px; }
.fs-controls-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 25px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0.9));
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.4s ease;
    pointer-events: none;
}
.fullscreen-overlay.show-controls .fs-controls-wrapper {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.fs-controls {
    display: flex;
    gap: 18px;
    align-items: center;
    background: rgba(0,0,0,0.4);
    padding: 10px 28px;
    border-radius: 40px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.06);
    width: auto;
    max-width: 90%;
    flex-wrap: wrap;
    justify-content: center;
}
.fs-controls button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
    padding: 4px 8px;
    border-radius: 4px;
}
.fs-controls button:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}
.fs-controls .play-btn {
    font-size: 30px;
    width: 48px;
    text-align: center;
}
.fs-controls .progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}
.fs-controls .progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    min-width: 100px;
}
.fs-controls .progress-bar:hover {
    height: 6px;
}
.fs-controls .progress-bar .progress-fill {
    height: 100%;
    background: #3498db;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s;
}
.fs-controls .time-display {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    min-width: 40px;
    text-align: center;
    font-weight: 300;
}
.fs-title {
    color: rgba(255,255,255,0.3);
    font-size: 14px;
    text-align: center;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 300;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .thumbnail-nav .thumb {
        flex: 0 0 56px;
        width: 56px;
        height: 56px;
    }
    .thumb-scroll-btn {
        flex: 0 0 28px;
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    .fullscreen-overlay {
        cursor: default;
    }
    .fullscreen-overlay .fs-image {
        object-fit: contain;
        width: 100%;
        height: auto;
        max-height: 78vh;
    }
    .fs-controls-wrapper {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
        padding: 15px 10px 15px 10px;
        background: linear-gradient(transparent, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0.95));
    }
    .fs-controls {
        padding: 8px 14px;
        gap: 10px;
        border-radius: 30px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        background: rgba(0,0,0,0.3);
    }
    .fs-controls button {
        font-size: 16px;
        padding: 3px 6px;
    }
    .fs-controls .play-btn {
        font-size: 22px;
        width: 36px;
    }
    .fs-controls .progress-container {
        min-width: 100px;
        flex: 1;
    }
    .fs-controls .time-display {
        font-size: 10px;
        min-width: 28px;
    }
    .fs-nav-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
        opacity: 1 !important;
    }
    .fs-nav-arrow.fs-prev { left: 8px; }
    .fs-nav-arrow.fs-next { right: 8px; }
    .fs-counter {
        font-size: 12px;
        top: 12px;
        padding: 3px 12px;
        opacity: 1 !important;
    }
    .fs-close-btn {
        top: 10px;
        right: 10px;
        font-size: 20px;
        padding: 6px 10px;
        opacity: 0.7 !important;
    }
    .fs-title {
        font-size: 12px;
        max-width: 90%;
        color: rgba(255,255,255,0.4);
    }
}
@media (max-width: 480px) {
    .thumbnail-nav .thumb {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
    }
    .thumb-scroll-btn {
        flex: 0 0 24px;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    .fullscreen-overlay .fs-image {
        max-height: 68vh;
    }
    .fs-controls {
        gap: 6px;
        padding: 6px 10px;
    }
    .fs-controls button {
        font-size: 14px;
        padding: 2px 4px;
    }
    .fs-controls .play-btn {
        font-size: 18px;
        width: 30px;
    }
    .fs-controls .progress-container {
        min-width: 70px;
    }
    .fs-controls .time-display {
        font-size: 9px;
        min-width: 22px;
    }
    .fs-nav-arrow {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .fs-nav-arrow.fs-prev { left: 4px; }
    .fs-nav-arrow.fs-next { right: 4px; }
}
