[v-cloak] {
    display: none;
}

html,
body {
    height: 100%;
}

body {
    background-image: url('https://imgapi.xl0408.top/index.php');
    background-size: cover;
    background-attachment: fixed;
    color: #333;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.background-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:url('https://imgapi.xl0408.top/index.php');
    background-size: cover;
    background-attachment: fixed;
    filter: blur(18px);
    z-index: -1;
    -webkit-filter: blur(18px);
}

.text-center{
    color: #fff;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    margin-bottom: 30px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(31,38,135,0.10);
    background: #fff;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-grow: 1;
    width: 100%;
}

.search-box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: visible;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 25px;
    overflow: visible;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    padding-right: 10px;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s;
    background: transparent;
}

.search-input:focus {
    outline: none;
}

.search-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.3s;
}

.search-icon-btn:hover {
    color: #007bff;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.category-item {
    padding: 6px 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #666;
}

.category-item:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.category-item.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.movie-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin: 24px 0;
    padding: 0 12px;
}

.movie-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.movie-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.movie-card:hover .movie-poster {
    filter: brightness(0.85);
}

.movie-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 20%, #ffffff 100%);
    margin-top: -60px;
    position: relative;
    z-index: 1;
}

.movie-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin-bottom: 4px;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.movie-type {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    color: #666;
    font-size: 12px;
    white-space: nowrap;
}

.movie-source {
    background: #e8f3ff;
    padding: 4px 8px;
    border-radius: 4px;
    color: #007bff;
    font-size: 12px;
    white-space: nowrap;
}

.movie-remark {
    color: #ff6b6b;
    font-size: 12px;
    padding: 4px 8px;
    background: #fff1f1;
    border-radius: 4px;
    white-space: nowrap;
}

.play-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    height: 32px;
    padding: 0 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    line-height: 32px;
    opacity: 0;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
    display: flex;
    align-items: center;
    gap: 4px;
}

.movie-card:hover .play-btn {
    opacity: 1;
    transform: translateY(0);
}

.play-btn:hover {
    background: #0056b3;
    box-shadow: 0 4px 12px rgba(0,123,255,0.4);
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error {
    text-align: center;
    padding: 20px;
    color: #dc3545;
}

.footer {
    background: #fff;
    padding: 20px 0;
    text-align: center;
    color: #666;
    font-size: 14px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.suggestions-list {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f5f5f5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.suggestion-item:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
    }

    .logo-text {
        font-size: 20px;
    }

    .search-container {
        padding: 0 15px;
    }

    .movie-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .movie-info {
        padding: 10px;
    }

    .movie-title {
        font-size: 14px;
    }

    .movie-meta {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 10px;
    }

    .logo img {
        height: 30px;
    }

    .logo-text {
        font-size: 18px;
    }

    .search-container {
        padding: 0 10px;
    }

    .movie-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .category-list {
        gap: 8px;
    }

    .category-item {
        padding: 4px 12px;
        font-size: 12px;
    }

    .search-input-wrapper {
        padding-right: 8px;
    }

    .search-input {
        padding: 10px 15px;
        font-size: 14px;
    }

    .search-icon-btn {
        padding: 6px;
    }
}


[v-cloak] {
    display: none;
}

body.play-page {
    color: #333;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #e9ecef;
    background-image: none;
}

.player-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#art-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
}

.video-info {
    margin: 24px 0 0 0;
    padding: 24px 24px 16px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px 0 rgba(31, 38, 135, 0.06);
    border: 1px solid #e3eaff;
    position: relative;
}

.video-info h1 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.video-info p {
    margin: 10px 0;
    line-height: 1.6;
    color: #666;
}

.video-info .label {
    color: #999;
    margin-right: 10px;
    font-weight: 500;
}

.theme-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: #fff;
    border: 1px solid #eee;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.back-btn {
    background: #fff;
    border: 1px solid #eee;
    padding: 8px 15px;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.back-btn:hover {
    background: #f8f9fa;
    color: #007bff;
    border-color: #007bff;
}

.back-btn i {
    margin-right: 5px;
}

body.dark-theme.play-page {
    background-color: #1a1a1a;
    color: #fff;
}

body.dark-theme .video-info,
body.dark-theme .theme-switch,
body.dark-theme .back-btn {
    background: #2d2d2d;
    border-color: #444;
    color: #fff;
}

body.dark-theme .video-info h1 {
    color: #fff;
}

body.dark-theme .video-info p {
    color: #ccc;
}

body.dark-theme .video-info .label {
    color: #999;
}

@media (max-width: 992px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
        margin: 0 auto;
    }
    .player-wrapper {
        margin-bottom: 16px;
    }
    .video-info {
        padding: 12px;
        margin: 10px 0;
    }
    .video-info .label {
        font-size: 14px;
    }
    .video-info p {
        font-size: 15px;
    }
    .theme-switch {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 14px;
    }
    .back-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
    .logo-text, h1 {
        font-size: 20px !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        margin: 0 auto;
    }
    .player-wrapper {
        margin-bottom: 15px;
    }
    .video-info {
        padding: 8px;
        margin: 6px 0;
    }
    .video-info .label {
        font-size: 13px;
    }
    .video-info p {
        font-size: 13px;
    }
    .theme-switch {
        top: 6px;
        right: 6px;
        padding: 4px 8px;
        font-size: 13px;
    }
    .back-btn {
        padding: 4px 8px;
        font-size: 13px;
    }
    .logo-text, h1 {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 8px;
        padding-right: 8px;
        margin: 0 auto;
    }
    .player-wrapper {
        margin: 0 auto 8px auto;
        width: calc(100% - 16px);
    }
    .video-info {
        padding: 4px;
        margin: 4px 0;
    }
    .video-info .label {
        font-size: 12px;
    }
    .video-info p {
        font-size: 12px;
    }
    .theme-switch {
        top: 2px;
        right: 2px;
        padding: 2px 6px;
        font-size: 12px;
    }
    .back-btn {
        padding: 2px 6px;
        font-size: 12px;
    }
    .logo-text, h1 {
        font-size: 13px !important;
    }
}

/* 新的选集列表样式 */
.episode-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
}

.episode-item {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ep-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 42px;
    border-radius: 12px;
    background: #f8f9fa;
    color: #555;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    user-select: none;
}

.episode-item:hover .ep-circle {
    background: #edf2ff;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.15);
}

.episode-item.active .ep-circle {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 4px 14px rgba(59,130,246,0.3);
}

/* 暗色主题适配 */
body.dark-theme .ep-circle {
    background: #2d3748;
    color: #a0aec0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

body.dark-theme .episode-item:hover .ep-circle {
    background: #2a4365;
    color: #63b3ed;
    box-shadow: 0 4px 12px rgba(66,153,225,0.2);
}

body.dark-theme .episode-item.active .ep-circle {
    background: #4299e1;
    color: #fff;
    box-shadow: 0 4px 14px rgba(66,153,225,0.4);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .episode-list {
        gap: 6px;
        padding: 12px 0;
    }

    .ep-circle {
        width: 36px;
        height: 36px;
        font-size: 14px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .episode-list {
        gap: 4px;
        padding: 8px 0;
    }

    .ep-circle {
        width: 32px;
        height: 32px;
        font-size: 13px;
        border-radius: 8px;
    }
}

.history-link {
    margin-left: auto;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.history-link:hover {
    background: #e9ecef;
    color: #007bff;
}

.history-link i {
    font-size: 18px;
}

body.dark-theme .history-link {
    color: #fff;
    background: #2d2d2d;
}

body.dark-theme .history-link:hover {
    background: #444;
    color: #007bff;
}

@media (max-width: 768px) {
    .history-link {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .history-link i {
        font-size: 16px;
    }
}

/* 历史记录页面样式 */
.history-list {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.history-item {
    display: flex;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.history-cover {
    width: 120px;
    height: 160px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

.history-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.history-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.history-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.history-actions {
    display: flex;
    gap: 10px;
}

.history-time {
    color: #999;
    font-size: 12px;
    margin-top: auto;
}

.empty-history {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* 暗色主题适配 */
body.dark-theme .history-item {
    background: #2d2d2d;
    border: 1px solid #444;
}

body.dark-theme .history-title {
    color: #fff;
}

body.dark-theme .history-meta {
    color: #bbb;
}

body.dark-theme .history-time {
    color: #888;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .history-item {
        flex-direction: column;
    }

    .history-cover {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .history-actions {
        flex-wrap: wrap;
    }
}

/* 历史记录下拉菜单 */
.history-dropdown {
    position: relative;
}

.history-btn {
    background: transparent;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.history-btn i {
    font-size: 16px;
}

.history-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0;
    z-index: 1000;
}

.history-title {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #eee;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.history-item:hover {
    background-color: #f5f5f5;
}

.history-item i {
    color: #666;
    margin-right: 8px;
    font-size: 14px;
}

.item-name {
    flex: 1;
    font-size: 14px;
    color: #333;
    margin-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-episode {
    color: #999;
    font-size: 12px;
}

.history-empty {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
}

.clear-btn {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    border-top: 1px solid #eee;
}

.clear-btn:hover {
    background: #e5e5e5;
}