* { box-sizing: border-box; }
body {
  margin: 0; background: #111; color: #e6e6e6;
  font: 16px/1.5 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: #f0884a; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }

.top { background: #000; border-bottom: 1px solid #262626; }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 50%; }
nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
nav a { color: #ccc; }
nav a:hover { color: #fff; text-decoration: none; }
nav .yt { background: #c00; color: #fff; padding: 6px 12px; border-radius: 2px; font-weight: 600; }

.banner { width: 100%; max-height: 300px; object-fit: cover; background: #000; }

section { padding: 34px 0 6px; }
h1, h2 { color: #fff; margin: 0; }
h2 { font-size: 22px; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.head a { font-size: 14px; }

.newest { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; }
.player { position: relative; aspect-ratio: 16/9; background: #000; }
.player iframe, .viewer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster { position: absolute; inset: 0; padding: 0; border: 0; background: #000; cursor: pointer; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.newest h1 { font-size: 24px; line-height: 1.25; margin-bottom: 6px; }
.meta { color: #999; font-size: 14px; margin: 0 0 12px; }
.desc { color: #c8c8c8; white-space: pre-line; margin: 0 0 12px; }

#q { width: 260px; max-width: 55%; background: #1c1c1c; color: #eee; border: 1px solid #333; border-radius: 2px; padding: 7px 10px; font: inherit; font-size: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 18px; border-bottom: 1px solid #2a2a2a; margin-bottom: 18px; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: #aaa; font: inherit; font-size: 14px; padding: 6px 0 8px; cursor: pointer; margin-bottom: -1px; }
.tabs button:hover { color: #fff; }
.tabs button[aria-pressed="true"] { color: #fff; border-bottom-color: #f0884a; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px 18px; }
.card { background: none; border: 0; padding: 0; text-align: left; color: inherit; cursor: pointer; font: inherit; }
.thumb { position: relative; aspect-ratio: 16/9; background: #222; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.dur { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.8); color: #fff; font-size: 12px; padding: 0 4px; }
.dur.live { background: #c00; }
.card h3 { margin: 8px 0 2px; font-size: 15px; line-height: 1.35; font-weight: 600; color: #eee;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover h3 { text-decoration: underline; }
.card p { margin: 0; color: #888; font-size: 13px; }
.empty { color: #999; }
.more { text-align: center; margin: 24px 0 0; }
.more button { background: #1c1c1c; color: #ddd; border: 1px solid #333; padding: 8px 18px; font: inherit; font-size: 14px; cursor: pointer; }
.more button:hover { border-color: #666; }

.shorts { display: grid; grid-auto-flow: column; grid-auto-columns: 170px; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.shorts .thumb { aspect-ratio: 9/16; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.two h2 { margin-bottom: 8px; }
.two p { color: #ccc; }
.wp { border-left: 3px solid #2f6fd6; padding-left: 20px; }
.wp .links { display: flex; flex-wrap: wrap; gap: 18px; }
.wp a { color: #6ea2ff; }

.foot { border-top: 1px solid #262626; padding: 18px 0; color: #888; font-size: 14px; }

dialog { padding: 0; border: 0; background: #000; width: min(1080px, 94vw); color: #eee; }
dialog::backdrop { background: rgba(0,0,0,.85); }
dialog.vertical { width: min(400px, 94vw); }
.viewer-frame { position: relative; aspect-ratio: 16/9; }
dialog.vertical .viewer-frame { aspect-ratio: 9/16; max-height: 82vh; margin: 0 auto; }
.viewer-info { display: flex; align-items: center; gap: 14px; padding: 10px 12px; font-size: 14px; background: #161616; }
#viewer-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#viewer-close { background: #2a2a2a; color: #fff; border: 0; padding: 6px 12px; cursor: pointer; font: inherit; }

@media (max-width: 860px) {
  .newest, .two { grid-template-columns: 1fr; }
  nav a:not(.yt) { display: none; }
}
@media (max-width: 560px) {
  .brand { font-size: 16px; }
  .banner { max-height: none; }
  .grid { grid-template-columns: 1fr; }
  .shorts { grid-auto-columns: 140px; }
  #q { width: 50%; }
}
