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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-right: 15px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.brand-logo {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin: 0 15px;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-list a:hover,
.nav-list .active a {
    color: #e74c3c;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    background: #f8f9fa;
    border-radius: 25px;
    overflow: hidden;
}

.search-input {
    border: none;
    padding: 10px 20px;
    background: transparent;
    outline: none;
    width: 250px;
}

.search-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #c0392b;
}

.main-content {
    padding: 20px 0;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #e74c3c;
}

.separator {
    margin: 0 8px;
}

.player-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.player-wrapper {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.player-header {
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.movie-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.player-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.control-btn:hover {
    background: #5a6268;
}

.video-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

.player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.poster-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.play-button {
    position: absolute;
    font-size: 60px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: color 0.3s;
}

.play-button:hover {
    color: #e74c3c;
}

.player-toolbar {
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e9ecef;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    gap: 10px;
}

.toolbar-left button,
.toolbar-right button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.toolbar-left button:hover,
.toolbar-right button:hover:not(:disabled) {
    background: #0056b3;
}

.toolbar-right button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.playlist-section {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.playlist-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.playlist-header h3 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.source-tabs {
    display: flex;
    gap: 5px;
}

.tab-btn {
    background: #e9ecef;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background: #e74c3c;
    color: white;
}

.playlist-content {
    padding: 20px;
}

.episode-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.episode-link {
    display: block;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 14px;
}

.episode-link:hover,
.episode-link.active {
    background: #e74c3c;
    color: white;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    border-left: 4px solid #e74c3c;
    padding-left: 15px;
}

.recommend-section,
.plot-section,
.hot-list-section {
    margin-bottom: 30px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.movie-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

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

.movie-poster {
    position: relative;
    padding-bottom: 140%;
    overflow: hidden;
}

.movie-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quality-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.movie-name {
    padding: 10px 15px 5px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.movie-actors {
    padding: 0 15px 15px;
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

.plot-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    line-height: 1.8;
}

.hot-list {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.list-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f8f9fa;
    transition: background 0.3s;
}

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

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

.rank {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
    margin-right: 15px;
    min-width: 25px;
}

.item-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.item-thumb {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.item-info {
    flex: 1;
}

.item-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.item-quality {
    font-size: 12px;
    color: #666;
}

.footer {
    background: #333;
    color: #fff;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-text {
    text-align: center;
    line-height: 1.8;
    color: #ccc;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        padding: 20px;
    }

    .nav-list li {
        margin: 10px 0;
    }

    .search-box {
        order: -1;
        margin-bottom: 15px;
    }

    .search-input {
        width: 200px;
    }

    .player-section {
        grid-template-columns: 1fr;
    }

    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .player-toolbar {
        flex-direction: column;
        gap: 15px;
    }

    .toolbar-left,
    .toolbar-right {
        justify-content: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .movie-name {
        font-size: 13px;
        padding: 8px 10px 5px;
    }

    .movie-actors {
        font-size: 11px;
        padding: 0 10px 10px;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .player-header {
        padding: 10px 15px;
    }

    .movie-title {
        font-size: 16px;
    }

    .control-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}
