@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700&family=Nunito+Sans:wght@400;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
    --void: #14101f;
    --panel: #221b38;
    --panel-2: #2c2347;
    --line: rgba(143, 140, 224, 0.18);
    --line-hover: rgba(143, 140, 224, 0.36);
    --text: #f1f0fa;
    --text-dim: #b8b4d9;
    --text-faint: #8480a8;
    --bubble: #8f8ce0;
    --bubble-deep: #55509a;
    --tally: #ff6b52;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--void);
    scrollbar-color: var(--bubble-deep) var(--void);
    scrollbar-width: thin;
}

html::-webkit-scrollbar {
    width: 10px;
}

html::-webkit-scrollbar-track {
    background: var(--void);
}

html::-webkit-scrollbar-thumb {
    border: 3px solid var(--void);
    border-radius: 999px;
    background: var(--bubble-deep);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: "Nunito Sans", sans-serif;
    background: var(--void);
}

::selection {
    color: var(--void);
    background: var(--bubble);
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    z-index: 4;
    outline: 2px solid var(--bubble);
    outline-offset: -3px;
}

#container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 24px 0;
}

#topbar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 88px;
    padding: 12px 20px;
    background: var(--panel);
    border: 2px solid var(--line);
    border-radius: 20px 20px 0 0;
    animation: shell-in 500ms both cubic-bezier(0.16, 1, 0.3, 1);
}

#topbar img {
    position: relative;
    z-index: 1;
    width: 148px;
    height: 67px;
    object-fit: contain;
    object-position: center;
    transition: transform 200ms ease;
}

.brand-link {
    position: relative;
    z-index: 1;
    display: flex;
    border-radius: 10px;
}

#topbar:hover img {
    transform: translateY(-1px) rotate(-1deg);
}

.topbar-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 12px;
    color: var(--bubble);
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: var(--panel-2);
}

.topbar-chip i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tally);
    box-shadow: 0 0 8px var(--tally);
    animation: live-pulse 1.5s ease-out infinite;
}

.broadcast-mark {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 10px 13px;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: var(--panel-2);
}

.broadcast-mark span {
    width: 4px;
    height: 12px;
    border-radius: 999px;
    background: var(--bubble);
    animation: signal 1.15s ease-in-out infinite alternate;
}

.broadcast-mark span:nth-child(2) {
    height: 21px;
    background: var(--bubble);
    opacity: .75;
    animation-delay: -0.55s;
}

.broadcast-mark span:nth-child(3) {
    height: 16px;
    background: var(--bubble-deep);
    animation-delay: -0.25s;
}

#navbar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    overflow: hidden;
    background: var(--line);
    border: 2px solid var(--line);
    border-width: 0 2px 2px;
    border-radius: 0 0 20px 20px;
    animation: shell-in 500ms 60ms both cubic-bezier(0.16, 1, 0.3, 1);
}

#navbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.nav,
.navchsn {
    position: relative;
    width: 100%;
    height: 54px;
    padding: 0 16px;
    color: var(--text-faint);
    font: 800 12px/1 "Nunito Sans", sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--panel);
    cursor: pointer;
    transition: color 150ms ease, background 150ms ease;
}

.navchsn {
    color: var(--void);
    background: var(--bubble);
}

.navchsn::before {
    width: 6px;
    height: 6px;
    margin-right: 8px;
    content: "";
    border-radius: 50%;
    background: var(--void);
}

.nav:hover {
    color: var(--text);
    background: var(--panel-2);
}

#main {
    padding-top: 26px;
}

#titlebar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--bubble);
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

#titlebar::before {
    width: 22px;
    height: 3px;
    content: "";
    background: var(--tally);
    border-radius: 2px;
}

#content {
    position: relative;
    background: var(--panel);
    border: 2px solid var(--line);
    border-radius: 20px;
    box-shadow: 10px 10px 0 var(--bubble-deep);
    animation: content-in 550ms 90ms both cubic-bezier(0.16, 1, 0.3, 1);
}

h1 {
    max-width: 760px;
    margin: 0;
    color: var(--text);
    font-family: "Fredoka", sans-serif;
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
}

.home-content {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(370px, 1.08fr);
    min-height: 500px;
}

.hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(38px, 6vw, 70px);
}

.hero-copy h1 {
    margin-bottom: 22px;
}

.hero-copy p {
    max-width: 480px;
    margin: 0;
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.75;
}

.hero-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 500px;
    background: var(--panel-2);
    border-left: 2px solid var(--line);
}

.hero-art {
    perspective: 1200px;
}

.hero-screen {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    position: relative;
    z-index: 1;
    display: block;
    width: min(88%, 620px);
    height: auto;
    filter: drop-shadow(8px 8px 0 var(--bubble-deep));
    transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transition: filter 200ms ease, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
    cursor: grab;
    touch-action: none;
    -webkit-user-drag: none;
    user-select: none;
}

.hero-screen:hover {
    filter: drop-shadow(11px 11px 0 var(--bubble-deep));
}

.hero-screen.grabbing {
    cursor: grabbing;
    transition: filter 200ms ease;
}

.projects-content {
    padding: clamp(24px, 4.5vw, 52px);
}

.projects-intro {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 16px 32px;
    margin-bottom: clamp(30px, 5vw, 52px);
}

.projects-kicker {
    grid-column: 1 / -1;
    width: max-content;
    padding: 6px 11px;
    color: var(--void);
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 999px;
    background: var(--tally);
}

.projects-intro h1 {
    max-width: 680px;
    font-size: clamp(40px, 5.6vw, 68px);
}

.projects-intro > p {
    max-width: 300px;
    margin: 0 0 6px;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.7;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.project-card {
    position: relative;
    grid-column: span 2;
    min-height: 240px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    background: var(--panel-2);
    border: 2px solid var(--line);
    border-radius: 16px;
    box-shadow: 6px 6px 0 var(--bubble-deep);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    text-decoration: none;
}

.project-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 var(--bubble-deep);
    border-color: var(--line-hover);
}

.project-card:nth-child(3),
.project-card:nth-child(4) {
    grid-column: span 3;
}

.project-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.project-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    font-size: 21px;
    background: var(--void);
    border: 2px solid var(--line);
    border-radius: 12px;
}

.project-card:hover .project-icon {
    border-color: var(--line-hover);
}

.project-ch {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 9px;
    color: var(--bubble);
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: var(--void);
}

.project-state {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    color: var(--text-faint);
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: var(--void);
}

.project-state.live {
    color: var(--text);
    border-color: var(--tally);
}

.project-state.live::before {
    width: 6px;
    height: 6px;
    margin-right: 6px;
    content: "";
    border-radius: 50%;
    background: var(--tally);
    box-shadow: 0 0 7px var(--tally);
}

.project-card h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    color: var(--text);
    font-family: "Fredoka", sans-serif;
    font-size: clamp(20px, 2.1vw, 28px);
    font-weight: 700;
    line-height: 1.05;
}

.project-featured h2 {
    font-size: clamp(27px, 3.2vw, 40px);
}

.project-card p {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 0 16px;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.65;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.project-tags span {
    padding: 4px 9px;
    color: var(--text-faint);
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--void);
}

.tvonline-content {
    padding: clamp(20px, 3.5vw, 40px);
}

.tvonline-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    padding: 11px 16px;
    color: var(--text-faint);
    border: 2px solid var(--line);
    border-radius: 10px;
    background: var(--void);
    transition: border-color 150ms ease, color 150ms ease;
}

.search-box:focus-within {
    color: var(--text);
    border-color: var(--line-hover);
}

.search-box input {
    width: 100%;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    background: none;
    border: 0;
    outline: 0;
}

.search-box input::placeholder {
    color: var(--text-faint);
}

.mode-tabs {
    display: flex;
    gap: 8px;
}

.mode-tab {
    padding: 10px 16px;
    color: var(--text-faint);
    font-family: "Nunito Sans", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: var(--void);
    cursor: pointer;
    transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.mode-tab:hover {
    color: var(--text);
    border-color: var(--line-hover);
}

.mode-tab.active {
    color: var(--void);
    background: var(--bubble);
    border-color: var(--bubble);
}

.player-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border: 3px solid var(--bubble);
    border-radius: 20px;
    box-shadow: 8px 8px 0 var(--bubble-deep);
    cursor: pointer;
}

#channel-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: cover;
}

.watermark {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    width: 56px;
    height: auto;
    opacity: 0.55;
    pointer-events: none;
}

.no-signal {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    background: repeating-linear-gradient(45deg, var(--panel-2) 0 2px, var(--panel) 2px 4px);
    color: var(--text-faint);
}

.no-signal.show {
    display: flex;
}

.no-signal span {
    color: var(--text);
    font-family: "Fredoka", sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.no-signal p {
    margin: 0;
    font-size: 13px;
}

.player-chip {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px 7px 10px;
    color: var(--text);
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    border: 2px solid var(--line-hover);
    border-radius: 999px;
    background: var(--void);
}

.player-chip i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tally);
    box-shadow: 0 0 8px var(--tally);
    animation: live-pulse 1.5s ease-out infinite;
}

.player-hint {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(4, 3, 10, 0.55);
    color: var(--text);
    font-family: "Fredoka", sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.player-hint.show {
    display: flex;
}

#newsbar {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 40;
    width: 70%;
    transform: translateX(-50%);
}

#newsbar-img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
}

.newsbar-clock {
    position: absolute;
    left: 7%;
    width: 26%;
    top: 71%;
    bottom: 4%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    font-size: 19px;
    letter-spacing: 0.02em;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.newsbar-short {
    position: absolute;
    left: 58%;
    right: 3%;
    top: 71%;
    bottom: 4%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Fredoka", sans-serif;
    font-weight: 700;
    font-size: 19px;
    letter-spacing: 0.01em;
    color: var(--bubble);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-shell.vod-mode {
    cursor: default;
}

.player-shell.vod-mode #channel-video {
    object-fit: contain;
}

.player-shell.vod-mode .player-chip,
.player-shell.vod-mode #newsbar {
    display: none;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 18px 0 30px;
}

.np-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    color: var(--tally);
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.np-label i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tally);
    box-shadow: 0 0 8px var(--tally);
    animation: live-pulse 1.5s ease-out infinite;
}

.np-title {
    flex: 1;
    min-width: 0;
    color: var(--text);
    font-family: "Fredoka", sans-serif;
    font-size: 19px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.np-copy,
.np-back {
    flex-shrink: 0;
    padding: 9px 16px;
    font-family: "Nunito Sans", sans-serif;
    font-weight: 700;
    font-size: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease;
}

.np-copy {
    color: var(--text);
    border: 2px solid var(--line);
    background: var(--void);
}

.np-copy:hover {
    border-color: var(--line-hover);
}

.np-back {
    color: var(--bubble);
    border: 2px solid var(--bubble-deep);
    background: var(--void);
}

.np-back:hover {
    background: var(--panel-2);
}

.state {
    padding: 60px 20px;
    color: var(--text-faint);
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}

.state code {
    display: inline-block;
    max-width: 100%;
    margin-top: 12px;
    padding: 10px 16px;
    color: var(--bubble);
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    word-break: break-all;
    border: 1px dashed var(--line-hover);
    border-radius: 8px;
    background: var(--void);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
    color: var(--text);
    font-family: "Fredoka", sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.section-title::after {
    flex: 1;
    height: 2px;
    content: "";
    background: var(--line);
}

.section-title ~ .section-title {
    margin-top: 44px;
}

.guide {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid var(--line);
    border-radius: 12px;
}

.guide-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 13px 16px;
    background: var(--void);
    border-bottom: 1px solid var(--line);
}

.guide-row:last-child {
    border-bottom: 0;
}

.guide-row.now {
    background: var(--panel-2);
}

.guide-time {
    flex-shrink: 0;
    width: 68px;
    color: var(--text-faint);
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 600;
}

.guide-row.now .guide-time {
    color: var(--tally);
}

.guide-title {
    flex: 1;
    min-width: 0;
    color: var(--text);
    font-family: "Nunito Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guide-now-tag {
    flex-shrink: 0;
    color: var(--tally);
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.guide-toggle {
    display: block;
    margin: 14px 0 44px;
    padding: 9px 16px;
    color: var(--bubble);
    font-family: "Nunito Sans", sans-serif;
    font-weight: 700;
    font-size: 12px;
    border: 2px solid var(--bubble-deep);
    border-radius: 8px;
    background: var(--void);
    cursor: pointer;
    transition: background 150ms ease;
}

.guide-toggle:hover {
    background: var(--panel-2);
}

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

.card {
    background: var(--void);
    border: 2px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.card:hover {
    border-color: var(--line-hover);
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 var(--bubble-deep);
}

.card.playing {
    border-color: var(--bubble);
    box-shadow: 6px 6px 0 var(--bubble-deep);
}

.card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--thumb-a, #4b4989), var(--thumb-b, #2c2a52));
    color: rgba(255, 255, 255, 0.85);
    font-family: "Fredoka", sans-serif;
    font-size: 36px;
    font-weight: 700;
}

.card-thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-watermark {
    position: absolute;
    bottom: 8px;
    right: 10px;
    width: 26px;
    height: auto;
    opacity: 0.45;
    pointer-events: none;
}

.thumb-banner {
    flex-direction: column;
    gap: 4px;
    background: linear-gradient(145deg, #4b4989, #241f45);
}

.thumb-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-title {
    color: rgba(255, 255, 255, 0.92);
    font-family: "Fredoka", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.banner-sub {
    color: var(--bubble);
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.card-body {
    padding: 14px 16px 18px;
}

.card-ch {
    display: block;
    margin-bottom: 6px;
    color: var(--text-faint);
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.card-title {
    display: -webkit-box;
    margin-bottom: 8px;
    overflow: hidden;
    color: var(--text);
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    gap: 8px;
    color: var(--text-faint);
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
}

.now-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 8px;
    color: var(--text);
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    border: 1px solid var(--line-hover);
    border-radius: 999px;
    background: var(--void);
}

.now-badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tally);
    box-shadow: 0 0 6px var(--tally);
    animation: live-pulse 1.5s ease-out infinite;
}

.folder-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 9px;
    color: var(--text);
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--line-hover);
    border-radius: 6px;
    background: var(--void);
}

#footer {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
    padding: 18px 4px;
    color: var(--text-faint);
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

#footer p {
    margin: 0;
    color: var(--text-faint);
    font-size: inherit;
}

@keyframes shell-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes content-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes signal {
    from { transform: scaleY(0.55); }
    to { transform: scaleY(1); }
}


@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 82, 0.7); }
    70%, 100% { box-shadow: 0 0 0 7px rgba(255, 107, 82, 0); }
}

@keyframes status-pulse {
    0% { box-shadow: 0 0 0 0 rgba(111, 227, 162, 0.55); }
    70%, 100% { box-shadow: 0 0 0 7px rgba(111, 227, 162, 0); }
}

@media (max-width: 820px) {
    #container {
        width: min(calc(100% - 28px), 720px);
        padding-top: 14px;
    }

    .home-content {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        min-height: 380px;
    }

    .hero-art {
        min-height: 420px;
        border-top: 2px solid var(--line);
        border-left: 0;
    }

    .projects-intro {
        grid-template-columns: 1fr;
    }

    .projects-intro > p {
        max-width: 500px;
    }

    .project-card {
        grid-column: span 3;
    }

    .project-card:nth-child(1) {
        grid-column: span 6;
    }
}

@media (max-width: 580px) {
    #topbar {
        min-height: 76px;
        padding: 10px 12px;
        border-radius: 15px 15px 0 0;
    }

    #topbar img {
        width: 105px;
        height: 50px;
    }

    .topbar-chip,
    .broadcast-mark {
        display: none;
    }

    #navbar {
        grid-template-columns: repeat(2, 1fr);
        border-radius: 0 0 15px 15px;
    }

    .nav,
    .navchsn {
        height: 46px;
        padding: 0 8px;
        font-size: 9px;
    }

    #main {
        padding-top: 18px;
    }

    #content {
        border-radius: 16px;
        box-shadow: 6px 6px 0 var(--bubble-deep);
    }

    h1 {
        font-size: clamp(34px, 12vw, 52px);
    }

    .hero-copy {
        min-height: 360px;
        padding: 32px 24px;
    }

    .hero-copy p {
        font-size: 14px;
    }

    .hero-art {
        min-height: 300px;
    }

    .hero-screen {
        width: 85%;
    }

    .projects-content {
        padding: 20px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .project-card,
    .project-card:nth-child(1),
    .project-card:nth-child(3),
    .project-card:nth-child(4) {
        grid-column: auto;
        min-height: 200px;
        padding: 20px;
    }

    .project-card h2 {
        font-size: 24px;
    }

    .tv-content {
        padding: 12px;
    }

    #sleemtv {
        margin-bottom: 20px;
        border-radius: 10px;
    }

    .tv-actions {
        flex-direction: column;
    }

    .tv-actions button {
        width: 100%;
    }

    #footer {
        display: block;
        padding: 18px 4px 8px;
        line-height: 1.9;
    }

    .tvonline-content {
        padding: 16px;
    }

    .search-box {
        width: 100%;
        min-width: 0;
    }

    .player-shell {
        border-width: 2px;
        box-shadow: 6px 6px 0 var(--bubble-deep);
    }

    .np-title {
        white-space: normal;
    }

    #newsbar {
        width: 92%;
    }

    .newsbar-clock {
        font-size: 13px;
        letter-spacing: 0;
    }

    .newsbar-short {
        font-size: 15px;
        letter-spacing: 0;
    }

    .guide-row {
        gap: 10px;
        padding: 10px 12px;
    }

    .guide-time {
        width: 46px;
        font-size: 11px;
    }

    .guide-title {
        font-size: 12px;
    }

    .guide-now-tag {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}
