
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }
        
        body {
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
            background: linear-gradient(160deg, #0b0e14 0%, #11151d 55%, #0b0e14 100%);
            background-size: cover;
            color: #fff;
            min-height: 100vh;
            overflow-x: hidden;
            transition: background 0.5s ease, color 0.3s ease;
            touch-action: manipulation;
        }
        
        .glass-effect {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
            transition: all 0.3s ease;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 15px;
        }
        
        .top-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 15px;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            height: 45px;
            background: rgba(0, 0, 0, 0.5);
        }
        
        .logo {
            font-size: 18px;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .logo span {
            background: linear-gradient(135deg, #f2c169 0%, #b8863a 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .logo i {
            color: #e0a94a;
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }
        
        .user-avatar {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            border: 2px solid #e0a94a;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: relative;
        }
        
        /* 头像图片必须填满圆形容器；缺此规则时 <img> 会按原始分辨率撑破 35px 容器 */
        .user-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
            display: block;
        }
        
        .user-avatar:hover {
            transform: scale(1.1);
            box-shadow: 0 0 10px rgba(224,169,74, 0.5);
        }
        
        .avatar-menu {
            position: fixed;
            top: 50px;
            left: 10px;
            background: rgba(0, 0, 0, 0.8);
            border-radius: 8px;
            padding: 10px;
            z-index: 1000;
            display: none;
            flex-direction: column;
            gap: 5px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(224,169,74, 0.3);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
            transform: translateX(-100%);
            opacity: 0;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }
        
        .avatar-menu.active {
            display: flex;
            transform: translateX(0);
            opacity: 1;
        }
        
        .avatar-menu-item {
            padding: 8px 12px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
            color: #fff;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
        }
        
        .avatar-menu-item:hover {
            background: rgba(224,169,74, 0.2);
            transform: translateX(5px);
        }
        
        .search-container {
            display: flex;
            gap: 8px;
            margin: 60px 10px 10px;
        }
        
        .search-box {
            flex: 1;
            padding: 8px 12px;
            border-radius: 18px;
            border: none;
            outline: none;
            font-size: 13px;
            transition: all 0.3s ease;
            min-height: 35px;
        }
        
        .search-box:focus {
            box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
            transform: scale(1.02);
        }
        
        .search-btn {
            padding: 8px 12px;
            border-radius: 18px;
            border: none;
            background: linear-gradient(135deg, #e05263, #a8453a);
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 13px;
            min-height: 35px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .search-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(224,82,99, 0.4);
        }
        
        .version-selector {
            margin: 8px 10px;
            padding: 6px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            gap: 6px;
            overflow-x: auto;
            white-space: nowrap;
            scrollbar-width: none;
            min-height: 40px;
            align-items: center;
        }
        
        .version-selector::-webkit-scrollbar {
            display: none;
        }
        
        .version-item {
            padding: 5px 10px;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            flex-shrink: 0;
            font-size: 12px;
        }
        
        .version-item:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.05);
        }
        
        .version-item.active {
            background: linear-gradient(135deg, #e0a94a, #b8863a);
            transform: scale(1.05);
        }
        
        .source-selector-wrapper {
            margin: 8px 10px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
            min-height: 40px;
            display: flex;
            align-items: center;
            padding: 6px 25px;
        }
        
        .sourceSelector {
            overflow-x: auto;
            white-space: nowrap;
            padding: 6px;
            display: flex;
            align-items: center;
            flex: 1;
            scroll-behavior: smooth;
            position: relative;
        }
        
        .sourceSelector::-webkit-scrollbar {
            height: 3px;
            display: block !important;
        }
        
        .sourceSelector::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 2px;
        }
        
        .sourceSelector::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #2fb8c6, #23808c);
            border-radius: 2px;
            transition: all 0.3s ease;
        }
        
        .sourceSelector::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #f2c169 0%, #b8863a 100%);
            transform: scaleY(1.5);
        }
        
        .scroll-progress {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: transparent;
            overflow: hidden;
        }
        
        .scroll-track {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 100%;
            background: rgba(255, 255, 255, 0.1);
        }
        
        .scroll-thumb {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            background: linear-gradient(135deg, #e0a94a, #d99a3c);
            width: 0%;
            border-radius: 2px;
            transition: width 0.3s ease;
        }
        
        .source-item {
            display: inline-flex;
            align-items: center;
            padding: 5px 10px;
            border-radius: 18px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-right: 6px;
            flex-shrink: 0;
            font-size: 11px;
            min-width: 60px;
            justify-content: center;
            border: 1px solid transparent;
            background: rgba(255, 255, 255, 0.05);
            position: relative;
            overflow: hidden;
        }
        
        .source-item:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
            border-color: rgba(224,169,74, 0.3);
        }
        
        .source-item.active {
            background: linear-gradient(135deg, #e0a94a, #d99a3c);
            transform: scale(1.05);
            box-shadow: 0 5px 20px rgba(224,169,74, 0.4);
            border-color: #e0a94a;
            color: #000;
            font-weight: bold;
        }
        
        .source-stats {
            margin: 5px 10px;
            padding: 5px 10px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.1);
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 11px;
        }
        
        .source-stats i {
            color: #2fb8c6;
        }
        
        .category-container {
            margin: 8px 10px;
            padding: 6px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.1);
            overflow-x: auto;
            scrollbar-width: none;
            min-height: 40px;
            display: flex;
            align-items: center;
        }
        
        .category-container::-webkit-scrollbar {
            display: none;
        }
        
        .category-nav {
            display: flex;
            gap: 6px;
        }
        
        .category-item {
            min-width: 60px;
            padding: 5px 8px;
            border-radius: 12px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            flex-shrink: 0;
            font-size: 11px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
        }
        
        .category-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 3px 10px rgba(255, 255, 255, 0.2);
        }
        
        .category-item.active {
            background: linear-gradient(135deg, #2fb8c6, #23808c);
            transform: scale(1.05);
        }
        
        .movies-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
            gap: 10px;
            margin: 10px;
            padding-bottom: 70px;
        }
        
        .movie-card {
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid;
            position: relative;
        }
        
        .movie-card:nth-child(3n+1) { border-color: #e05263; }
        .movie-card:nth-child(3n+2) { border-color: #2fb8c6; }
        .movie-card:nth-child(3n+3) { border-color: #e8c06a; }
        
        .movie-card:hover {
            transform: translateY(-5px) scale(1.03);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        }
        
        .movie-poster {
            width: 100%;
            height: 130px;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .movie-card:hover .movie-poster {
            transform: scale(1.1);
        }
        
        .movie-info {
            padding: 5px;
            background: rgba(0, 0, 0, 0.7);
        }
        
        .movie-title {
            font-size: 11px;
            margin-bottom: 3px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .movie-rating {
            font-size: 9px;
            color: #e0a94a;
            display: flex;
            align-items: center;
            gap: 3px;
            margin-top: 3px;
        }
        
        .vip-icon {
            position: absolute;
            top: 5px;
            right: 5px;
            background: linear-gradient(135deg, #e0a94a, #d99a3c);
            color: #1b1206;
            font-weight: 700;
            padding: 2px 6px;
            border-radius: 8px;
            font-size: 9px;
            z-index: 1;
        }
        
        .source-tag {
            position: absolute;
            top: 5px;
            left: 5px;
            background: linear-gradient(135deg, #2fb8c6, #23808c);
            color: #1b1206;
            font-weight: 700;
            padding: 2px 6px;
            border-radius: 8px;
            font-size: 9px;
            z-index: 1;
        }
        
        .load-more {
            text-align: center;
            margin: 10px;
            padding: 10px;
            border-radius: 18px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 13px;
        }
        
        .load-more:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
        }
        
        .bottom-nav {
            position: fixed;
            bottom: 10px;
            left: 10px;
            right: 10px;
            display: flex;
            justify-content: space-around;
            padding: 6px 0;
            z-index: 1000;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
        }
        
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            cursor: pointer;
            transition: all 0.3s ease;
            padding: 5px 8px;
            border-radius: 12px;
            height: 40px;
        }
        
        .nav-item:hover {
            transform: translateY(-2px);
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 0 3px 10px rgba(255, 255, 255, 0.2);
        }
        
        .nav-item.active {
            color: #e0a94a;
            transform: scale(1.1);
            background: rgba(224,169,74, 0.2);
        }
        
        .nav-icon {
            font-size: 14px;
            transition: transform 0.3s ease;
        }
        
        .nav-item:hover .nav-icon {
            transform: rotate(10deg) scale(1.2);
        }
        
        .nav-text {
            font-size: 9px;
        }
        
        .page-content {
            display: none;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }
        
        .page-content.active {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }
        
        .recommendations-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
            gap: 10px;
            margin: 50px 10px 10px;
            padding-bottom: 70px;
        }
        
        .website-card {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 10px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .website-card:hover {
            transform: scale(1.05);
            background: rgba(255, 255, 255, 0.2);
        }
        
        .website-icon {
            font-size: 20px;
            margin-bottom: 5px;
            color: #e0a94a;
        }
        
        .apps-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
            gap: 10px;
            margin: 50px 10px 10px;
            padding-bottom: 70px;
        }
        
        .app-card {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 12px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            border: 2px solid;
        }
        
        .app-card:nth-child(3n+1) { border-color: #e05263; }
        .app-card:nth-child(3n+2) { border-color: #2fb8c6; }
        .app-card:nth-child(3n+3) { border-color: #e8c06a; }
        
        .app-card:hover {
            transform: scale(1.05);
            background: rgba(255, 255, 255, 0.2);
            box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
        }
        
        .app-icon {
            width: 100%;
            height: 140px;
            margin-bottom: 8px;
            border-radius: 12px;
            transition: transform 0.3s ease;
            object-fit: cover;
        }
        
        .app-card:hover .app-icon {
            transform: rotate(5deg) scale(1.1);
        }
        
        .app-name {
            font-size: 11px;
            margin-bottom: 4px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .app-type {
            font-size: 9px;
            opacity: 0.8;
        }
        
        .app-badge {
            position: absolute;
            top: 8px;
            right: 8px;
            padding: 2px 6px;
            border-radius: 8px;
            font-size: 9px;
            z-index: 1;
        }
        
        .app-badge.gold {
            background: linear-gradient(135deg, #e0a94a, #d99a3c);
        }
        
        .app-badge.vip {
            background: linear-gradient(135deg, #2fb8c6, #23808c);
        }
        
        .profile-section {
            padding: 50px 10px 15px;
            text-align: center;
        }
        
        .profile-info-container {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 12px;
            margin: 12px;
            position: relative;
            max-width: 450px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .profile-avatar {
            width: 55px;
            height: 55px;
            border-radius: 50%;
            border: 3px solid #e0a94a;
            margin: 0 auto 8px;
            display: block;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .profile-avatar:hover {
            transform: scale(1.1);
            box-shadow: 0 0 15px rgba(224,169,74, 0.5);
        }
        
        .profile-name {
            font-size: 14px;
            margin-bottom: 5px;
        }
        
        .profile-status {
            background: linear-gradient(135deg, #e0a94a, #d99a3c);
            padding: 2px 8px;
            border-radius: 8px;
            font-size: 11px;
            margin: 0 auto 8px;
            display: inline-block;
        }
        
        .wechat-info {
            background: linear-gradient(135deg, #1caf47, #34c98a);
            padding: 3px 8px;
            border-radius: 6px;
            font-size: 11px;
            margin: 4px auto 8px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            color: white;
            max-width: 230px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .wechat-info i {
            font-size: 12px;
        }
        
        .profile-stats {
            display: flex;
            justify-content: space-around;
            margin: 8px 0;
            padding: 8px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
        }
        
        .stat-item {
            text-align: center;
        }
        
        .stat-value {
            font-size: 12px;
            font-weight: bold;
            margin-bottom: 2px;
        }
        
        .stat-label {
            font-size: 9px;
            opacity: 0.8;
        }
        
        .profile-info {
            margin-top: 10px;
        }
        
        .info-item {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
            cursor: pointer;
            font-size: 12px;
        }
        
        .info-item:hover {
            background: rgba(255, 255, 255, 0.05);
            transform: translateX(5px);
        }
        
        .info-item:last-child {
            border-bottom: none;
        }
        
        .info-label {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .info-label i {
            color: #e0a94a;
            transition: transform 0.3s ease;
        }
        
        .info-item:hover .info-label i {
            transform: scale(1.2);
        }
        
        .vip-badge {
            background: linear-gradient(135deg, #e0a94a, #d99a3c);
            padding: 2px 6px;
            border-radius: 6px;
            font-size: 10px;
        }
        
        .short-video-tag {
            position: absolute;
            top: 5px;
            left: 5px;
            background: linear-gradient(135deg, #ff7675, #fd79a8);
            padding: 2px 6px;
            border-radius: 8px;
            font-size: 9px;
            z-index: 1;
        }
        
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transform: scale(0.8);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        
        .modal-overlay.active {
            opacity: 1;
            transform: scale(1);
        }
        
        .modal-content {
            background: rgba(255, 255, 255, 0.2);
            padding: 12px;
            border-radius: 12px;
            width: 80%;
            max-width: 280px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            transform: translateY(-20px);
            opacity: 0;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }
        
        .modal-overlay.active .modal-content {
            transform: translateY(0);
            opacity: 1;
        }
        
        .modal-title {
            margin-bottom: 12px;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }
        
        .modal-title i {
            color: #e0a94a;
            animation: bounce 1s infinite;
        }
        
        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }
        
        .modal-buttons {
            text-align: center;
            margin-top: 12px;
            display: flex;
            justify-content: center;
            gap: 8px;
            overflow-x: auto;
            padding: 4px;
        }
        
        .modal-btn {
            padding: 5px 12px;
            border-radius: 12px;
            border: none;
            color: white;
            cursor: pointer;
            font-size: 12px;
            flex-shrink: 0;
            transition: all 0.3s ease;
        }
        
        .modal-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
        }
        
        .modal-btn.confirm {
            background: linear-gradient(135deg, #2fb8c6, #23808c);
        }
        
        .modal-btn.cancel {
            background: linear-gradient(135deg, #e05263, #a8453a);
        }
        
        .search-progress {
            width: 100%;
            height: 4px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 4px;
            margin-top: 8px;
            overflow: hidden;
        }
        
        .search-progress-bar {
            height: 100%;
            background: linear-gradient(135deg, #2fb8c6, #23808c);
            width: 0;
            transition: width 0.3s ease;
        }
        
        .membership-cards {
            display: flex;
            overflow-x: auto;
            gap: 12px;
            margin: 15px 0;
            padding: 8px;
            scrollbar-width: none;
        }
        
        .membership-cards::-webkit-scrollbar {
            display: none;
        }
        
        .membership-card {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 12px;
            min-width: 180px;
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .membership-card:hover {
            transform: scale(1.05);
            background: rgba(255, 255, 255, 0.2);
            box-shadow: 0 10px 25px rgba(224,169,74, 0.3);
        }
        
        .membership-card.active {
            border: 2px solid #e0a94a;
            background: rgba(224,169,74, 0.2);
            box-shadow: 0 10px 25px rgba(224,169,74, 0.5);
        }
        
        .membership-title {
            font-size: 14px;
            margin-bottom: 8px;
            color: #e0a94a;
        }
        
        .membership-price {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 8px;
        }
        
        .membership-desc {
            font-size: 11px;
            opacity: 0.8;
        }
        
        .payment-method-slider {
            display: flex;
            overflow-x: auto;
            gap: 8px;
            padding: 8px 0;
            scrollbar-width: none;
        }
        
        .payment-method-slider::-webkit-scrollbar {
            display: none;
        }
        
        .payment-method-card {
            min-width: 90px;
            padding: 12px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.1);
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }
        
        .payment-method-card:hover {
            transform: translateY(-5px);
            background: rgba(255, 255, 255, 0.2);
        }
        
        .payment-method-card.active {
            background: linear-gradient(135deg, #2fb8c6, #23808c);
            transform: scale(1.05);
        }
        
        .payment-icon {
            font-size: 22px;
            margin-bottom: 6px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease;
        }
        
        .payment-method-card:hover .payment-icon {
            transform: rotate(10deg) scale(1.2);
        }
        
        .payment-name {
            font-size: 11px;
            margin-top: 4px;
        }
        
        .payment-record-item {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 8px;
            transition: all 0.3s ease;
        }
        
        .payment-record-item:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateX(5px);
        }
        
        .record-status {
            display: inline-block;
            padding: 2px 6px;
            border-radius: 8px;
            font-size: 11px;
            margin-top: 4px;
        }
        
        .status-success {
            background: rgba(47,184,198, 0.2);
            color: #2fb8c6;
        }
        
        .status-pending {
            background: rgba(224,169,74, 0.2);
            color: #e0a94a;
        }
        
        .status-failed {
            background: rgba(224,82,99, 0.2);
            color: #e05263;
        }
        
        .payment-buttons {
            margin-top: 8px;
        }
        
        .vip-upgrade-item {
            background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
            color: #333;
            font-weight: bold;
            margin: 12px 0 8px 0;
            border-radius: 6px;
            border: 2px solid #e0a94a;
            animation: glow 2s infinite;
        }
        
        @keyframes glow {
            0% { box-shadow: 0 0 5px rgba(224,169,74, 0.3); }
            50% { box-shadow: 0 0 20px rgba(224,169,74, 0.6); }
            100% { box-shadow: 0 0 5px rgba(224,169,74, 0.3); }
        }
        
        body.theme-dark {
            background: linear-gradient(135deg, #141e30 0%, #243b55 100%);
        }
        
        body.theme-light {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            color: #333;
        }
        
        body.theme-light .glass-effect {
            background: rgba(255, 255, 255, 0.5);
            border: 1px solid rgba(0, 0, 0, 0.1);
        }
        
        body.theme-light .movie-info {
            background: rgba(0, 0, 0, 0.1);
            color: #333;
        }
        
        @media (min-width: 768px) {
            .movies-grid, .recommendations-grid, .apps-grid {
                grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
                gap: 12px;
            }
            
            .movie-poster {
                height: 150px;
            }
            
            .search-container {
                margin: 60px 15px 15px;
            }
            
            .version-selector,
            .sourceSelector,
            .category-container {
                margin: 8px 15px;
            }
        }
        
        @media (min-width: 1024px) {
            .container {
                padding: 25px;
            }
            
            .movies-grid, .recommendations-grid, .apps-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
                gap: 15px;
                margin: 15px;
            }
        }
        
        ::-webkit-scrollbar {
            width: 3px;
            height: 3px;
        }
        
        ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 2px;
        }
        
        ::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #2fb8c6, #23808c);
            border-radius: 2px;
        }
        
        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #f2c169 0%, #b8863a 100%);
        }
        
        .page-jump-container {
            position: fixed;
            top: 50px;
            right: 10px;
            background: rgba(0, 0, 0, 0.8);
            border-radius: 6px;
            padding: 5px;
            z-index: 1000;
            display: none;
            flex-direction: column;
            align-items: center;
            gap: 3px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(224,169,74, 0.3);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
            transform: scale(0.85);
            transform-origin: top right;
        }
        
        .page-jump-container.active {
            display: flex;
        }
        
        .page-jump-input {
            width: 55px;
            padding: 4px 5px;
            border-radius: 4px;
            border: none;
            background: rgba(255, 255, 255, 0.9);
            color: #333;
            text-align: center;
            font-size: 11px;
            transition: all 0.3s ease;
        }
        
        .page-jump-input:focus {
            outline: none;
            box-shadow: 0 0 6px rgba(224,169,74, 0.5);
            transform: scale(1.05);
        }
        
        .page-jump-btn {
            padding: 4px 8px;
            border-radius: 4px;
            border: none;
            background: linear-gradient(135deg, #f2c169 0%, #b8863a 100%);
            color: #1b1206;
            cursor: pointer;
            font-size: 9px;
            font-weight: bold;
            transition: all 0.3s ease;
        }
        
        .page-jump-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(224,82,99, 0.4);
        }
        
        .page-jump-btn:active {
            transform: translateY(0) scale(0.95);
        }
        
        .logout-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: linear-gradient(135deg, #e05263, #a8453a);
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 12px;
            cursor: pointer;
            font-size: 11px;
            transition: all 0.3s ease;
        }
        
        .logout-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(224,82,99, 0.4);
        }
    /* ============================================================
   本地化兼容层
   本文件追加于基础样式（原 wiros7.cn/style.css 的等效实现）之后，
   用于补齐主模板中使用、而基础样式未定义的类。
   层叠顺序：本文件 -> apple-crystal-theme.css -> template.php 内联样式
   ============================================================ */

/* ---------- 搜索框容器 / 搜索历史 ---------- */
.search-box-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
}

.search-box-wrapper .search-box {
    width: 100%;
}

.search-history {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    background: rgba(25, 25, 45, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    z-index: 900;
    display: none;
}

.search-history.show,
.search-history:not(:empty) {
    display: block;
}

.search-history-item {
    padding: 10px 14px;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-history-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ---------- 未登录提示（短剧 / 推荐页） ---------- */
.login-prompt {
    margin: 80px 15px 20px;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.25);
}

.login-prompt h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.login-prompt p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.login-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.login-btn {
    flex: 1;
    min-width: 120px;
    max-width: 180px;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 25px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.login-btn.primary {
    background: linear-gradient(135deg, #e0a94a 0%, #b8863a 100%);
    color: #1b1206;
    box-shadow: 0 6px 18px rgba(224,169,74, 0.4);
}

.login-btn.secondary {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
}

.login-btn.primary:hover {
    box-shadow: 0 9px 24px rgba(224,169,74, 0.55);
}

.login-btn:active {
    transform: scale(0.97);
}

/* ---------- 维护模式 ---------- */
.maintenance-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(160deg, #0b0e14 0%, #10141c 100%);
    z-index: 10000;
}

.maintenance-box {
    width: 100%;
    max-width: 420px;
    padding: 32px 24px;
    border-radius: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.maintenance-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.maintenance-message {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 20px;
    white-space: pre-wrap;
    word-break: break-word;
}

.maintenance-qrcode {
    width: 150px;
    height: 150px;
    margin: 0 auto 14px;
    border-radius: 12px;
    background: #fff;
    padding: 6px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.maintenance-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.maintenance-contact {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* ---------- 强制更新 ---------- */
.force-update-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
}

.force-update-content {
    width: 100%;
    max-width: 420px;
    max-height: 86vh;
    overflow-y: auto;
    padding: 28px 22px;
    border-radius: 20px;
    text-align: center;
}

.force-update-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.force-update-version {
    font-size: 13px;
    color: #e0a94a;
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.force-update-content-img {
    margin-bottom: 16px;
}

.force-update-content-img img {
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

.force-update-message {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 20px;
    text-align: left;
    word-break: break-word;
}

.force-update-btn {
    width: 100%;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 13px 20px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 700;
    color: #1b1206;
    background: linear-gradient(135deg, #e0a94a 0%, #b8863a 100%);
    box-shadow: 0 6px 20px rgba(224,169,74, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.force-update-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 26px rgba(224,169,74, 0.6);
}

.force-update-btn:active {
    transform: scale(0.98);
}

/* ---------- 首页广告条 ---------- */
.home-ad-banner {
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-ad-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

/* ---------- VIP 提示横幅（补悬停反馈与默认外观兜底） ---------- */
.vip-upgrade-banner,
.vip-welcome-banner {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vip-upgrade-banner:hover,
.vip-welcome-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
}

/* ---------- VIP 套餐网格 / 支付方式（兜底，JS 生成元素自带内联样式） ---------- */
.vip-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.vip-package-item {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.vip-package-item:hover {
    background: rgba(255, 255, 255, 0.18);
}

.vip-package-item.active {
    border-color: #e0a94a;
    background: rgba(224,169,74, 0.16);
}

.pay-type-item {
    flex: 1;
    min-width: 100px;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(200, 200, 200, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.pay-type-item.active {
    border-color: #e0a94a;
}

/* ---------- 账号绑定提示 ---------- */
.bind-message {
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
    word-break: break-word;
}

.bind-message.success {
    background: rgba(47,184,198, 0.2);
    border: 1px solid rgba(47,184,198, 0.5);
    color: #2fb8c6;
}

.bind-message.error {
    background: rgba(224,82,99, 0.2);
    border: 1px solid rgba(224,82,99, 0.5);
    color: #e05263;
}

/* ---------- 会员到期提醒 ---------- */
.expiry-warning {
    background: linear-gradient(135deg, rgba(224,82,99, 0.2) 0%, rgba(255, 142, 83, 0.2) 100%);
    border: 1px solid rgba(224,82,99, 0.5);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.expiry-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(224,82,99, 0.3);
}

/* ---------- 推荐卡片（JS 生成，兜底悬停反馈） ---------- */
.recommendation-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.recommendation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* ---------- 列表标题 / 结果列表（次要页面兜底） ---------- */
.history-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 15px 10px 8px;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px;
}
/* ---------- 加载中指示器 ---------- */
.loading-spinner {
    width: 24px;
    height: 24px;
    margin: 0 auto 8px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: ecSpin 0.8s linear infinite;
}

@keyframes ecSpin {
    to { transform: rotate(360deg); }
}

/* ============================================================ */
/* ---------- 影视库（كىنو ئامبىرى / TVBox JSON 影视库） ---------- */
/* 说明：卡片用 .library-card（不用 .movie-card），避免被全局 VIP 点击捕获阻断复制按钮 */
/* ============================================================ */
.library-panel {
    margin: 8px 10px 4px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.library-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.library-bar-label {
    flex: 0 0 auto;
    font-size: 12px;
    color: #e0a94a;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.library-chips {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.library-chips::-webkit-scrollbar { display: none; height: 0; }

.library-chip {
    flex: 0 0 auto;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #f2f2f2;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.library-chip:hover {
    background: rgba(255, 255, 255, 0.18);
}

.library-chip.active {
    background: linear-gradient(135deg, #2fb8c6, #23808c);
    border-color: transparent;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(47,184,198, 0.45);
}

.library-bar-tools {
    justify-content: space-between;
}

.library-search {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 3px 4px 3px 12px;
}

.library-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 13px;
    padding: 5px 0;
}

.library-search input::placeholder { color: rgba(255, 255, 255, 0.45); }

.library-search button {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #f2c169 0%, #b8863a 100%);
    color: #1b1206;
    cursor: pointer;
    font-size: 12px;
}

.library-lang-btn {
    flex: 0 0 auto;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.library-lang-btn:hover { background: rgba(255, 255, 255, 0.18); }

.library-status {
    margin: 6px 10px;
    font-size: 12px;
}

.library-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    padding: 10px 4px;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin: 6px 10px 10px;
}

.library-card {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid;
    position: relative;
    background: rgba(0, 0, 0, 0.25);
}

.library-card:nth-child(3n+1) { border-color: #e05263; }
.library-card:nth-child(3n+2) { border-color: #2fb8c6; }
.library-card:nth-child(3n+3) { border-color: #e8c06a; }

.library-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.library-poster-wrap {
    position: relative;
    width: 100%;
    height: 130px;
    overflow: hidden;
}

.library-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
}

.library-card:hover .library-poster { transform: scale(1.08); }

.library-badge {
    position: absolute;
    inset-inline-end: 4px;
    top: 4px;
    max-width: calc(100% - 8px);
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.65);
    color: #e0a94a;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.library-meta {
    padding: 5px;
    background: rgba(0, 0, 0, 0.72);
}

.library-title {
    font-size: 11px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
}

.library-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.library-act {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.library-act:hover {
    background: rgba(47,184,198, 0.85);
    transform: translateY(-1px);
}

.library-more-wrap {
    text-align: center;
    margin: 0 10px 16px;
}

.library-more-btn {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.library-more-btn:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------- 详情底部弹层 ---------- */
.library-sheet-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 900;
}

.library-sheet-mask.show {
    opacity: 1;
    pointer-events: auto;
}

.library-sheet {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    max-height: 78vh;
    overflow-y: auto;
    padding: 14px 14px 24px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.98), rgba(16, 16, 32, 0.99));
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateY(105%);
    transition: transform 0.28s ease;
    z-index: 901;
}

.library-sheet.show { transform: translateY(0); }

.library-sheet-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.library-sheet-poster {
    flex: 0 0 auto;
    width: 90px;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
}

.library-sheet-info {
    flex: 1 1 auto;
    min-width: 0;
}

.library-sheet-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.library-sheet-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.library-sheet-actions { gap: 6px; }

.library-sheet-actions .library-act {
    width: 28px;
    height: 28px;
    font-size: 12px;
    border-radius: 8px;
}

.library-sheet-desc {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 8px;
}

.library-sheet-lab {
    font-size: 13px;
    color: #e0a94a;
    margin: 14px 0 8px;
}

.library-eps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.library-ep {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.library-ep:hover { background: rgba(47,184,198, 0.75); }

/* ---------- 轻提示 ---------- */
.library-toast {
    position: fixed;
    left: 50%;
    bottom: 84px;
    transform: translate(-50%, 20px);
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 950;
}

.library-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------- 移动端栅格 ---------- */
@media (max-width: 640px) {
    .library-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin: 6px 8px 10px;
    }

    .library-poster-wrap { height: 118px; }

    .library-panel { margin: 8px 8px 4px; }

    .library-sheet-poster { width: 80px; height: 116px; }
}

@media (max-width: 360px) {
    .library-grid { grid-template-columns: repeat(2, 1fr); }
}
