/* =============================================
 * Coded By - DARK LMNx9 (Limon Hossain)
 * GitHub - https://github.com/LMNx9-JOHNY
 * Website - https://dark.lmnx9.workers.dev
 * WhatsApp - https://wa.me/+8801882168975
 * Telegram - https://t.me/x_LMNx9
============================================= */
:root {
    --hb-primary: #1b4d3e;
    --hb-dark-green: #0f3a2e;
    --hb-purple: #800080;
    --hb-deep-pink: #ff1493;
    --hb-purple-light: #f3e8f3;
    --hb-pink-light: #fff0f7;
    --hb-primary-light: #e8f3ef;

    --text-dark: #1a1a1a;
    --text-light: #4a4a4a;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-light: #eeeeee;

    --shadow-sm: 0 5px 15px rgba(27, 77, 62, 0.08);
    --shadow-md: 0 10px 25px rgba(128, 0, 128, 0.1);
    --shadow-lg: 0 20px 40px rgba(255, 20, 147, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Mina", sans-serif;
}

body {
    background-color: var(--bg-white);
    padding-top: 80px;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    padding: 10px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
}

.main-nav #LOGO {
    width: 120px;
    height: auto;
    transition: transform var(--transition);
}

.main-nav #LOGO:hover {
    transform: scale(1.05);
}

.profile-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--hb-primary);
    object-fit: cover;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(27, 77, 62, 0.2);
}

.profile-img:hover {
    transform: scale(1.1);
    border-color: var(--hb-deep-pink);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.3);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(
        135deg,
        var(--bg-white) 0%,
        var(--bg-light) 100%
    );
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(27, 77, 62, 0.03) 0%,
        rgba(128, 0, 128, 0.02) 50%,
        rgba(255, 20, 147, 0.01) 100%
    );
    animation: rotate 30s linear infinite;
}

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

.boss-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--hb-primary), var(--hb-purple));
    color: #fff;
    padding: 8px 30px;
    border-radius: 50px;
    font-size: clamp(14px, 4vw, 18px);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    position: relative;
    box-shadow: 0 5px 15px rgba(128, 0, 128, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-header h1 {
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 700;
    background: linear-gradient(
        135deg,
        var(--hb-primary),
        var(--hb-purple),
        var(--hb-deep-pink)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 15px 0;
    position: relative;
}

.page-header .subtitle {
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 500;
    color: var(--hb-purple);
    letter-spacing: 0.5px;
}

.page-header .subtitle i {
    color: var(--hb-deep-pink);
}

.page-header hr {
    border: none;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--hb-primary),
        var(--hb-purple),
        var(--hb-deep-pink),
        transparent
    );
    width: min(300px, 80%);
    margin: 25px auto;
}

.page-header .description {
    color: var(--text-muted);
    font-size: clamp(14px, 3vw, 16px);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    padding: 0 15px;
}

.channel-header {
    background: var(--bg-light);
    border-radius: 20px;
    padding: clamp(20px, 4vw, 35px);
    margin-bottom: 45px;
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 40px);
    flex-wrap: wrap;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.channel-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--hb-primary),
        var(--hb-purple),
        var(--hb-deep-pink)
    );
}

.channel-header:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.channel-icon {
    width: clamp(80px, 15vw, 120px);
    height: clamp(80px, 15vw, 120px);
    background: linear-gradient(135deg, var(--hb-primary), var(--hb-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(40px, 8vw, 60px);
    color: #fff;
    box-shadow: 0 8px 20px rgba(128, 0, 128, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.channel-info {
    flex: 1;
    min-width: 280px;
}

.channel-info h2 {
    font-size: clamp(22px, 5vw, 32px);
    font-weight: 700;
    color: var(--hb-primary);
    margin-bottom: 10px;
}

.channel-info p {
    font-size: clamp(14px, 3vw, 16px);
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.channel-info p i {
    color: var(--hb-deep-pink);
    margin-right: 5px;
}

.btn-subscribe {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #fff;
    border: none;
    padding: clamp(10px, 2vw, 14px) clamp(20px, 4vw, 35px);
    border-radius: 50px;
    font-size: clamp(14px, 3vw, 16px);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-subscribe:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

.btn-subscribe i {
    font-size: 18px;
}

.section-title {
    font-size: clamp(20px, 5vw, 26px);
    font-weight: 700;
    color: var(--hb-primary);
    margin: 45px 0 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(
        90deg,
        var(--hb-primary),
        var(--hb-deep-pink)
    );
    border-image-slice: 1;
    display: inline-block;
    position: relative;
}

.section-title i {
    color: var(--hb-deep-pink);
    margin-right: 10px;
}

.playlist-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.playlist-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--hb-primary);
}

.playlist-header {
    background: linear-gradient(90deg, var(--bg-light), var(--bg-white));
    padding: clamp(15px, 3vw, 22px) clamp(20px, 4vw, 25px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.playlist-header:hover {
    background: linear-gradient(
        90deg,
        var(--hb-primary-light),
        var(--bg-light)
    );
}

.playlist-header h3 {
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.playlist-header h3 i {
    font-size: clamp(20px, 4vw, 24px);
    color: var(--hb-purple);
}

.playlist-header .video-count {
    background: linear-gradient(135deg, var(--hb-primary), var(--hb-purple));
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 600;
    white-space: nowrap;
}

.playlist-header .toggle-icon {
    font-size: clamp(16px, 4vw, 20px);
    color: var(--hb-deep-pink);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.playlist-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.video-list {
    max-height: 600px;
    overflow-y: auto;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 20px;
    background: var(--bg-white);
}

.video-list.collapsed {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

.video-list::-webkit-scrollbar {
    width: 6px;
}

.video-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.video-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--hb-primary), var(--hb-purple));
    border-radius: 10px;
}

.video-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        135deg,
        var(--hb-dark-green),
        var(--hb-deep-pink)
    );
}

.video-item {
    display: flex;
    align-items: center;
    gap: clamp(15px, 3vw, 25px);
    padding: clamp(12px, 2vw, 18px);
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 12px;
}

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

.video-item:hover {
    background: var(--hb-primary-light);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.video-thumb {
    width: min(200px, 30%);
    max-width: 220px;
    min-width: 140px;
    aspect-ratio: 16/9;
    background: #f0f0f0;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.video-item:hover .video-thumb {
    border-color: var(--hb-deep-pink);
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-item:hover .video-thumb img {
    transform: scale(1.05);
}

.video-thumb .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(27, 77, 62, 0.7),
        rgba(128, 0, 128, 0.7),
        rgba(255, 20, 147, 0.7)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-item:hover .play-overlay {
    opacity: 1;
}

.video-thumb .play-overlay i {
    color: #fff;
    font-size: clamp(30px, 6vw, 48px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

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

.video-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: clamp(14px, 3vw, 16px);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 20px);
    font-size: clamp(11px, 2.5vw, 13px);
    color: #777777;
}

.video-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(
        135deg,
        var(--hb-primary-light),
        var(--hb-pink-light)
    );
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(27, 77, 62, 0.1);
}

.video-meta i {
    color: var(--hb-deep-pink);
    font-size: 12px;
}

.modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: linear-gradient(135deg, var(--hb-primary), var(--hb-purple));
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
}

.modal-header h5 {
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 600;
    color: #fff;
}

.modal-header .btn-close {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transition: var(--transition);
    border-radius: 50%;
    padding: 8px;
}

.modal-header .btn-close:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.modal-body {
    padding: 0;
    background: #000000;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .main-nav {
        padding: 8px 16px;
    }

    .main-nav #LOGO {
        width: 100px;
    }

    .profile-img {
        width: 36px;
        height: 36px;
    }

    .page-header {
        padding: 30px 15px;
        margin-bottom: 30px;
        border-radius: 18px;
    }

    .channel-header {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    .channel-info {
        text-align: center;
    }

    .video-item {
        flex-direction: column;
        align-items: start;
    }

    .video-thumb {
        width: 100%;
        max-width: none;
        aspect-ratio: 16/9;
    }

    .video-meta {
        justify-content: flex-start;
    }

    .video-item:hover {
        transform: translateY(-3px);
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }

    .main-nav {
        padding: 6px 12px;
    }

    .main-nav #LOGO {
        width: 85px;
    }

    .profile-img {
        width: 32px;
        height: 32px;
    }

    .page-header {
        padding: 25px 12px;
        border-radius: 16px;
    }

    .boss-badge {
        padding: 6px 20px;
    }

    .playlist-header h3 {
        gap: 8px;
    }

    .video-meta span {
        padding: 3px 8px;
    }

    .modal-dialog {
        margin: 10px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .page-header {
        padding: 15px;
    }

    .channel-header {
        padding: 15px;
    }

    .video-list {
        max-height: 350px;
    }
}

@media (hover: none) {
    .playlist-card:hover,
    .video-item:hover,
    .btn-subscribe:hover {
        transform: none;
    }

    .video-thumb .play-overlay {
        opacity: 1;
        background: rgba(27, 77, 62, 0.5);
    }
}

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

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