@import url('https://fonts.googleapis.com/css2?family=Jacquard+12&family=Pixelify+Sans:wght@400;700&display=swap');

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

body {
    background-color: #ffe4f0;
    background-image: url('https://64.media.tumblr.com/4d6e0be2aad437bd24591c7096a7cda7/tumblr_inline_ml9dstLHNt1qz4rgp.png');
    font-family: 'Pixelify Sans', 'Courier New', Courier, monospace;
    color: #c93771;
    min-height: 100vh;
}

.hidden { display: none !important; }

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 52px;
    background-color: #fff4f6;
    border-bottom: 2px solid #fb80b4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    gap: 12px;
}

.header-left { flex-shrink: 0; }

.site-logo {
    font-family: 'Jacquard 12', system-ui;
    font-size: 32px;
    color: #fb80b4;
    text-decoration: none;
    text-shadow: 2px 2px 0 #ffb9d8;
    letter-spacing: 1px;
    line-height: 1;
}

.site-logo:hover { color: #ea4d8e; }

.header-center {
    flex: 1;
    max-width: 460px;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    border: 2px solid #ffb9d8;
    background: #fff0f6;
    overflow: hidden;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Pixelify Sans', monospace;
    font-size: 13px;
    color: #c93771;
    padding: 5px 10px;
}

.search-input::placeholder { color: #f4aecf; }

.search-input:disabled { opacity: 0.7; }

.search-btn {
    background: #ffb9d8;
    border: none;
    border-left: 2px solid #ffb9d8;
    padding: 0 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
}

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

.header-right { flex-shrink: 0; }

.header-home-link {
    font-family: 'Pixelify Sans', monospace;
    font-size: 12px;
    color: #ea4d8e;
    text-decoration: none;
    border-bottom: 1px dashed #fb80b4;
}

.header-home-link:hover { color: #c93771; }

.left-sidebar {
    position: fixed;
    top: 52px;
    left: 0;
    bottom: 0;
    width: 200px;
    background-color: #fff4f6;
    border-right: 2px solid #ffb9d8;
    overflow-y: auto;
    padding: 10px 0 20px;
    z-index: 90;
}

.nav-home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: transparent;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.15s;
    text-align: center;
}

.nav-home-btn:hover {
    background: #ffe4f0;
    color: #c93771;
}

.nav-icon { font-size: 16px; }

.nav-divider {
    border-top: 1px dashed #ffb9d8;
    margin: 6px 10px;
}

.nav-section-label {
    font-size: 11px;
    font-weight: bold;
    color: #f4aecf;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 16px 6px;
}

.sub-list {
    list-style: none;
    padding: 0;
}

.sub-list li a {
    display: block;
    padding: 5px 16px;
    font-size: 13px;
    color: #c93771;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.1s, color 0.1s;
}

.sub-list li a:hover {
    background: #ffe4f0;
    color: #ea4d8e;
}

.left-sidebar::-webkit-scrollbar { width: 6px; }
.left-sidebar::-webkit-scrollbar-track { background: #fff4f6; }
.left-sidebar::-webkit-scrollbar-thumb { background: #ffb9d8; }
.left-sidebar::-webkit-scrollbar-thumb:hover { background: #fb80b4; }

.main-area {
    margin-top: 52px;
    margin-left: 200px;
    min-height: calc(100vh - 52px);
}

.channel-banner {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #ffe4f0, #ffb9d8, #fb80b4, #ffb9d8, #ffe4f0);
    background-size: 300% 300%;
    animation: shimmer 4s ease infinite;
    border: 2px solid #fb80b4;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes shimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.channel-info-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px 10px;
    flex-wrap: wrap;
}

.channel-left {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.channel-icon {
    width: 120px;
    height: 120px;
    border: 3px solid #fb80b4;
    object-fit: cover;
    flex-shrink: 0;
    image-rendering: pixelated;
    background: #ffb9d8;
}

.channel-meta { display: flex; flex-direction: column; gap: 4px; }

.channel-name {
    font-family: 'Jacquard 12', system-ui;
    font-size: 36px;
    color: #fb80b4;
    text-shadow: 2px 2px 0 #fff0f6, 4px 4px 0 #ffb9d8;
    letter-spacing: 2px;
    line-height: 1;
}

.channel-handle {
    font-size: 13px;
    color: #ea4d8e;
}

.channel-desc {
    font-size: 13px;
    color: #c9709a;
    max-width: 480px;
    line-height: 1.5;
}

.channel-right { padding-top: 8px; }

.subscribe-btn {
    font-family: 'Pixelify Sans', monospace;
    font-size: 14px;
    font-weight: bold;
    background-color: #fb80b4;
    color: #fff0f6;
    border: 2px solid #df387d;
    padding: 7px 16px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 1px;
}

.subscribe-btn:hover { background-color: #ea4d8e; }

.subscribe-btn.subscribed {
    background-color: #fff4f6;
    color: #ea4d8e;
    border-color: #ffb9d8;
}

.channel-tabs {
    padding: 0 20px;
    border-bottom: 2px solid #ffb9d8;
    display: flex;
    gap: 4px;
}

.tab-btn {
    font-family: 'Pixelify Sans', monospace;
    font-size: 14px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #c9709a;
    padding: 8px 12px;
    cursor: pointer;
    margin-bottom: -2px;
    transition: color 0.15s;
}

.tab-btn.active {
    color: #ea4d8e;
    border-bottom-color: #fb80b4;
    font-weight: bold;
}

.tab-btn:hover { color: #ea4d8e; }

.page-body {
    padding: 16px 20px 40px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.video-card {
    background-color: #fff4f6;
    border: 2px solid #ffb9d8;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.1s;
}

.video-card:hover {
    border-color: #fb80b4;
    transform: translateY(-2px);
}

.video-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background-color: #ffb9d8;
    border-bottom: 2px solid #ffb9d8;
}

.thumb-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #ffb9d8, #fb80b4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border-bottom: 2px solid #ffb9d8;
}

.video-card-info { padding: 8px; }

.video-card-title {
    font-size: 13px;
    font-weight: bold;
    color: #c93771;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-meta {
    font-size: 11px;
    color: #c9709a;
}

.player-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.player-main { flex: 1; min-width: 0; }

.player-window {
    border: 2px solid #df387d;
    background-color: #FFB9D8;
    padding: 4px;
    margin-bottom: 10px;
}

.window-titlebar {
    background-color: #FFF4F6;
    border: 2px solid #fb80b4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 8px;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: bold;
    color: #fb80b4;
}

.close-btn {
    background: #fb80b4;
    border: 1px solid #df387d;
    color: #fff0f6;
    font-family: 'Pixelify Sans', monospace;
    font-size: 12px;
    padding: 1px 7px;
    cursor: pointer;
    line-height: 1.4;
}

.close-btn:hover { background: #ea4d8e; }

.video-wrapper {
    border: 3px solid #fb80b4;
    width: 100%;
    margin-bottom: 10px;
    background: #000;
}

.video-info-box {
    background: #fff4f6;
    border: 2px solid #ffb9d8;
    padding: 12px;
}

.video-title {
    font-family: 'Jacquard 12', system-ui;
    font-size: 28px;
    color: #fb80b4;
    text-shadow: 1px 1px 0 #fff0f6;
    margin-bottom: 4px;
}

.video-meta {
    font-size: 12px;
    color: #c9709a;
    margin-bottom: 8px;
}

.pink-divider {
    border: none;
    border-top: 1px dashed #ffb9d8;
    margin: 8px 0;
}

.video-desc {
    font-size: 13px;
    color: #c9709a;
    line-height: 1.6;
    white-space: pre-line;
}

.player-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 62px;
}

.sidebar-window {
    border: 2px solid #df387d;
    background-color: #FFB9D8;
    padding: 4px;
}

.sidebar-title {
    border: 2px solid #fb80b4;
    background-color: #FFF4F6;
    font-family: 'Pixelify Sans', monospace;
    font-weight: bold;
    color: #fb80b4;
    font-size: 14px;
    padding: 3px 6px;
    margin-bottom: 4px;
    text-align: center;
}

.related-card {
    display: flex;
    gap: 8px;
    padding: 6px 4px;
    background: #fff4f6;
    border: 2px solid transparent;
    margin-bottom: 4px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.related-card:hover { border-color: #fb80b4; }
.related-card.playing { border-color: #fb80b4; background: #fff0f6; }

.related-thumb {
    width: 72px;
    height: 40px;
    object-fit: cover;
    flex-shrink: 0;
    background: #ffb9d8;
    border: 1px solid #ffb9d8;
}

.related-thumb-placeholder {
    width: 72px;
    height: 40px;
    background: linear-gradient(135deg, #ffb9d8, #fb80b4);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

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

.related-title {
    font-size: 11px;
    font-weight: bold;
    color: #c93771;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    font-size: 10px;
    color: #c9709a;
    margin-top: 2px;
}

.custom-player {
    display: flex;
    flex-direction: column;
    background: #000;
    width: 100%;
}

.cp-video-area {
    position: relative;
    background: #000;
    line-height: 0;
}

.cp-video-area video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
}

.cp-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    transition: background 0.2s;
    z-index: 1;
}

.cp-overlay.paused {
    background: rgba(0, 0, 0, 0.28);
}

.cp-big-play {
    font-family: 'Pixelify Sans', monospace;
    font-size: 40px;
    color: #fb80b4;
    background: #fff4f6;
    border: 3px solid #fb80b4;
    box-shadow: 4px 4px 0 #c93771;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.15s, transform 0.15s;
    pointer-events: none;
    padding-left: 4px; 
    line-height: 1;
}

.cp-overlay.paused .cp-big-play {
    opacity: 1;
    transform: scale(1);
}

.cp-controls {
    background: #fff4f6;
    border-top: 3px solid #fb80b4;
}

.cp-progress-row {
    padding: 8px 12px 4px;
}

.cp-progress {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 12px;
    background: #ffb9d8;
    border: 2px solid #fb80b4;
    outline: none;
    cursor: pointer;
}

.cp-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 22px;
    background: #c93771;
    border: 2px solid #fff4f6;
    cursor: pointer;
    box-shadow: 1px 1px 0 #a02050;
}

.cp-progress::-moz-range-thumb {
    width: 12px;
    height: 22px;
    background: #c93771;
    border: 2px solid #fff4f6;
    cursor: pointer;
    border-radius: 0;
}

.cp-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px 10px;
    gap: 8px;
}

.cp-left {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
}

.cp-right {
    flex-shrink: 0;
}

.cp-btn {
    font-family: 'Pixelify Sans', monospace;
    font-size: 14px;
    background: #fff4f6;
    border: 2px solid #ffb9d8;
    color: #c93771;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
    box-shadow: 2px 2px 0 #ffb9d8;
    transition: background 0.05s, border-color 0.05s, box-shadow 0.05s, transform 0.05s;
}

.cp-btn:hover {
    background: #ffe4f0;
    border-color: #fb80b4;
}

.cp-btn:active {
    box-shadow: none;
    transform: translate(2px, 2px);
}

.cp-time {
    font-family: 'Pixelify Sans', monospace;
    font-size: 12px;
    color: #c9709a;
    white-space: nowrap;
    padding: 0 4px;
}

.cp-volume {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 8px;
    background: #ffb9d8;
    border: 2px solid #fb80b4;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
}

.cp-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 20px;
    background: #fb80b4;
    border: 2px solid #c93771;
    cursor: pointer;
}

.cp-volume::-moz-range-thumb {
    width: 12px;
    height: 20px;
    background: #fb80b4;
    border: 2px solid #c93771;
    cursor: pointer;
    border-radius: 0;
}

.custom-player:fullscreen .cp-video-area video,
.custom-player:-webkit-full-screen .cp-video-area video {
    aspect-ratio: unset;
    height: calc(100vh - 90px);
}

.custom-player:fullscreen .cp-controls,
.custom-player:-webkit-full-screen .cp-controls {
    background: #1a1a1a;
    border-top-color: #444;
}

.custom-player:fullscreen .cp-progress,
.custom-player:-webkit-full-screen .cp-progress {
    background: #555;
    border-color: #444;
}

.custom-player:fullscreen .cp-progress::-webkit-slider-thumb,
.custom-player:-webkit-full-screen .cp-progress::-webkit-slider-thumb {
    background: #aaa;
    border-color: #222;
    box-shadow: 1px 1px 0 #000;
}

.custom-player:fullscreen .cp-progress::-moz-range-thumb,
.custom-player:-webkit-full-screen .cp-progress::-moz-range-thumb {
    background: #aaa;
    border-color: #222;
}

.custom-player:fullscreen .cp-btn,
.custom-player:-webkit-full-screen .cp-btn {
    background: #2a2a2a;
    border-color: #444;
    color: #ccc;
    box-shadow: 2px 2px 0 #111;
}

.custom-player:fullscreen .cp-btn:hover,
.custom-player:-webkit-full-screen .cp-btn:hover {
    background: #3a3a3a;
    border-color: #666;
}

.custom-player:fullscreen .cp-volume,
.custom-player:-webkit-full-screen .cp-volume {
    background: #555;
    border-color: #444;
}

.custom-player:fullscreen .cp-volume::-webkit-slider-thumb,
.custom-player:-webkit-full-screen .cp-volume::-webkit-slider-thumb {
    background: #aaa;
    border-color: #222;
}

.custom-player:fullscreen .cp-volume::-moz-range-thumb,
.custom-player:-webkit-full-screen .cp-volume::-moz-range-thumb {
    background: #aaa;
    border-color: #222;
}

.custom-player:fullscreen .cp-time,
.custom-player:-webkit-full-screen .cp-time {
    color: #999;
}

footer {
    text-align: center;
    padding: 20px;
    font-family: 'Pixelify Sans', monospace;
    color: #fb80b4;
    font-size: 12px;
    border-top: 2px dashed #ffb9d8;
    margin-top: 10px;
}

footer a {
    color: #ea4d8e;
    text-decoration: none;
    border-bottom: 1px dashed #fb80b4;
}

footer a:hover { color: #c93771; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #FFF4F6; }
::-webkit-scrollbar-thumb { background: #FFB9D8; }
::-webkit-scrollbar-thumb:hover { background: #ff6ca7; }

@media (max-width: 760px) {
    .left-sidebar { display: none; }
    .main-area { margin-left: 0; }
    .player-layout { flex-direction: column; }
    .player-sidebar { width: 100%; position: static; }
    .channel-info-bar { flex-direction: column; }
    .channel-right { padding-top: 0; }
    .video-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

.sub-hidden { display: none; }

.sub-toggle { list-style: none; padding: 4px 16px 2px; }

.sub-more-btn {
    background: transparent;
    border: none;
    font-family: 'Pixelify Sans', monospace;
    font-size: 12px;
    color: #f4aecf;
    cursor: pointer;
    padding: 2px 0;
    transition: color 0.15s;
}

.sub-more-btn:hover { color: #ea4d8e; }

.playlist-card {
    text-decoration: none;
    display: block;
}

.playlist-card:hover {
    border-color: #fb80b4;
    transform: translateY(-2px);
}

.playlist-vis {
    font-size: 11px;
    color: #f4aecf;
    font-style: italic;
}

.video-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 4px;
}

.video-like-group {
    display: flex;
    gap: 6px;
}

.action-btn {
    font-family: 'Pixelify Sans', monospace;
    font-size: 13px;
    background: #fff4f6;
    border: 2px solid #ffb9d8;
    color: #ea4d8e;
    padding: 5px 14px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.action-btn:hover {
    border-color: #fb80b4;
    background: #ffe4f0;
}

.like-btn.active {
    background: #fb80b4;
    border-color: #df387d;
    color: #fff0f6;
}

.dislike-btn.active {
    background: #c93771;
    border-color: #a02050;
    color: #fff0f6;
}

.player-sub-btn {
    font-size: 13px;
    padding: 5px 14px;
}

.player-channel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

.player-channel-icon {
    width: 40px;
    height: 40px;
    border: 2px solid #fb80b4;
    object-fit: cover;
    image-rendering: pixelated;
    flex-shrink: 0;
}

.player-channel-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.player-channel-name {
    font-size: 14px;
    font-weight: bold;
    color: #c93771;
}

.player-channel-subs {
    font-size: 11px;
    color: #c9709a;
}

.player-channel-name-btn {
    background: none;
    border: none;
    font-family: 'Pixelify Sans', monospace;
    font-size: 14px;
    font-weight: bold;
    color: #c93771;
    cursor: pointer;
    padding: 0;
    text-align: left;
    border-bottom: 1px dashed #ffb9d8;
    transition: color 0.15s;
}

.player-channel-name-btn:hover { color: #ea4d8e; }
