:root { font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK KR", system-ui, sans-serif; color:#24454c; background:#eaf1f1; color-scheme:light; font-synthesis:none; -webkit-font-smoothing:antialiased; }
    * { box-sizing:border-box; }
    body { margin:0; min-width:320px; }
    button,input { font:inherit; }
    button { cursor:pointer; }
    button:focus-visible,input:focus-visible,a:focus-visible { outline:3px solid #0b879b; outline-offset:3px; }
    button { -webkit-tap-highlight-color:transparent; }
    .shell { display:flex; flex-direction:column; width:min(100%,1360px); height:100dvh; min-height:610px; margin:auto; background:#f8fbfb; border:1px solid #bad7d8; border-radius:14px; overflow:hidden; box-shadow:0 10px 32px #204d4d13; }
    .top { flex:none; background:#42656b; color:white; min-height:111px; padding:22px 30px 18px; display:flex; flex-direction:column; justify-content:space-between; }
    .top-title { font-size:23px; font-weight:750; letter-spacing:-.55px; line-height:1.28; margin:0; }
    .top-sub { display:flex; justify-content:space-between; align-items:center; gap:12px; }
    .top-sub p { margin:0; font-size:12px; letter-spacing:.045em; color:#e2eeee; }
    .info-btn { display:flex; align-items:center; gap:7px; border:0; border-radius:7px; padding:6px 9px; color:#f1f9f9; background:transparent; font-size:13px; }
    .info-btn:hover { background:#5b8287; }
    .info-btn svg { width:16px; height:16px; }
    main { flex:1; min-height:0; display:flex; flex-direction:column; gap:13px; padding:21px 29px 16px; }
    .overview { display:grid; grid-template-columns:minmax(145px,1fr) minmax(260px,560px); align-items:start; gap:22px; }
    .total { padding-top:3px; }
    .muted-label { display:block; color:#749297; font-size:12px; letter-spacing:.01em; }
    .total-number { color:#42656b; font-size:26px; font-weight:750; line-height:1.35; margin-top:3px; font-variant-numeric:tabular-nums; }
    .search { border-radius:11px; background:#f5b940; border:1px solid #e3a92d; height:48px; padding:0 12px; display:flex; align-items:center; gap:12px; color:#74581f; }
    .search:focus-within { outline:2px solid #d3a126; outline-offset:1px; }
    .search svg { width:21px; height:21px; flex:none; }
    .search input { flex:1; min-width:0; height:100%; padding:0; border:0; outline:none; background:transparent; appearance:none; font-size:15px; color:#423612; }
    .search input::placeholder { color:#856a35; opacity:1; }
    .clear-search { flex:none; width:40px; height:40px; border:0; color:#74581f; border-radius:10px; display:grid; place-items:center; background:transparent; padding:0; }
    .clear-search:hover { background:#e9ad32; }
    .clear-search svg { width:18px; height:18px; }
    .clear-search[hidden] { display:none; }
    .filters { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:37px; }
    .result-count { font-size:13px; color:#5a8188; margin:0; }
    .sort-wrap { position:relative; width:172px; flex:none; }
    .sort-toggle { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; height:44px; border:1px solid #bddde0; background:#e9f4f5; border-radius:9px; color:#416a70; padding:0 13px 0 15px; font-size:13px; text-align:left; }
    .sort-toggle:hover { background:#deeff0; }
    .sort-toggle svg { width:17px; height:17px; flex:none; }
    .sort-menu { position:absolute; z-index:5; top:calc(100% + 5px); left:0; width:100%; border:1px solid #b7d5d7; border-radius:9px; background:#fff; padding:5px; box-shadow:0 7px 18px #264e531a; }
    .sort-menu[hidden] { display:none; }
    .sort-menu button { display:block; width:100%; height:37px; text-align:left; border:0; border-radius:6px; background:transparent; color:#284851; padding:0 11px; font-size:13px; }
    .sort-menu button:hover,.sort-menu button:focus-visible,.sort-menu button[aria-checked="true"] { background:#dceef0; }
    .desktop-table { position:relative; flex:1; min-height:155px; display:flex; flex-direction:column; border:1px solid #b7d5d7; border-radius:14px; background:#fff; overflow:hidden; }
    .table-head { flex:none; height:48px; padding-right:var(--scrollbar-width,0px); background:#65a2a5; }
    .scroll { flex:1; min-height:0; overflow:auto; scrollbar-color:#8ab4b8 #e9f4f4; }
    .scroll:focus-visible { outline:2px solid #0b879b; outline-offset:-2px; }
    .scroll::-webkit-scrollbar { width:11px; }
    .scroll::-webkit-scrollbar-track { background:#e9f4f4; }
    .scroll::-webkit-scrollbar-thumb { background:#8ab4b8; border:2px solid #e9f4f4; border-radius:8px; }
    .scroll::-webkit-scrollbar-thumb:hover { background:#629ba0; }
    table { width:100%; border-collapse:collapse; table-layout:fixed; font-size:13px; }
    col.num { width:83px; } col.date { width:151px; } col.duration { width:130px; }
    thead th { height:48px; background:#65a2a5; font-weight:700; color:white; position:sticky; top:0; z-index:1; padding:8px; text-align:center; }
    tbody tr:nth-child(even) { background:#eaf3f3; }
    tbody tr:hover { background:#d9ecee; }
    td { height:47px; padding:9px 9px; text-align:center; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; color:#284852; font-variant-numeric:tabular-nums; }
    td.title { text-align:left; }
    .video-title { background:none; border:0; padding:0; color:#127d96; font-size:13px; text-align:left; text-decoration:underline; text-underline-offset:3px; display:inline-block; width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; vertical-align:middle; cursor:pointer; }
    .video-title:hover { color:#07556a; }
    .mobile-list { display:none; }
    .mobile-updated,.mobile-actions { display:none; }
    .empty[hidden] { display:none; }
    .empty { padding:48px 15px; font-size:14px; color:#6b8a8f; text-align:center; }
    .desktop-empty { position:absolute; z-index:2; inset:48px 0 0; display:flex; justify-content:center; align-items:center; background:#fff; }
    .mobile-empty { display:none; }
    .footer { flex:none; display:flex; justify-content:space-between; align-items:center; gap:14px; min-height:44px; color:#60858a; font-size:12px; }
    .random-video { flex:none; color:white; font-weight:700; background:#65a2a5; padding:11px 18px; border-radius:9px; border:1px solid #75aeb1; white-space:nowrap; }
    .random-video:hover:not(:disabled) { background:#558f93; }
    .random-video:disabled { background:#a9c6c8; border-color:#a9c6c8; cursor:default; }
    .updated { white-space:nowrap; text-align:right; }
    dialog.about-dialog { color:#284851; width:min(520px,calc(100vw - 28px)); max-height:calc(100dvh - 32px); overflow-y:auto; padding:23px; border:1px solid #b9d4d7; border-radius:14px; background:#fff; box-shadow:0 24px 85px #183e4352; }
    dialog::backdrop { background:#24454c77; }
    .dialog-head { display:flex; align-items:start; justify-content:space-between; gap:15px; border-bottom:1px solid #cadddf; padding-bottom:13px; }
    .dialog-head h2 { font-size:21px; color:#42656b; margin:0; line-height:1.3; }
    .dialog-head p { margin:6px 0 0; font-size:12px; color:#74979c; }
    .dialog-close { border:0; background:transparent; font-size:27px; line-height:1; width:30px; height:30px; color:#42656b; cursor:pointer; padding:0; flex:none; }
    .dialog-close:hover { background:#e8f3f3; border-radius:7px; }
    .about-section { margin-top:16px; }
    .about-section h3 { font-size:13px; font-weight:700; letter-spacing:.04em; margin:0 0 12px; color:#42656b; }
    .about-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 13px; margin:0; }
    .about-fields > div { min-width:0; }
    .about-fields dt { font-size:12px; color:#77999e; margin-bottom:3px; }
    .about-fields dd { margin:0; font-size:13px; font-weight:700; color:#203d45; overflow-wrap:anywhere; }
    .about-description { padding:14px 15px; margin:16px 0 0; background:#eef5f5; border:1px solid #d3e5e6; border-radius:9px; color:#527980; font-size:12.5px; line-height:1.7; }
    .social-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 9px; }
    .social-link { text-decoration:none; min-width:0; min-height:56px; border:1px solid #c9dfe1; border-radius:11px; background:#f9fcfc; display:flex; align-items:center; padding:7px 10px; gap:8px; }
    .social-link:hover { background:#e9f4f4; border-color:#82b2b6; }
    .social-link img { flex:none; width:32px; height:28px; object-fit:contain; }
    .social-label { min-width:0; display:flex; flex-direction:column; gap:3px; }
    .social-label strong { color:#2d515a; font-size:12.5px; line-height:1.2; }
    .social-label small { color:#78999e; font-size:10.5px; line-height:1.3; }
    .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
    @media (min-width:768px) {
      body { display:grid; grid-template-columns:minmax(0,1fr); place-items:center; min-height:max(648px,100dvh); padding:24px; }
      .shell { width:min(100%,1360px); height:clamp(600px,calc(100dvh - 48px),900px); min-height:600px; margin:0; }
    }
    @media (min-width:768px) and (max-width:1023px) { .top { min-height:100px; } main { padding:18px 20px 14px; } col.num { width:65px; } col.date { width:127px; } col.duration { width:107px; } td { padding-inline:7px; } }
    @media (max-width:767px) {
      :root { background:#f8fbfb; }
      .shell { height:auto; min-height:100dvh; border:0; border-radius:0; box-shadow:none; overflow:visible; }
      .top { min-height:67px; padding:18px 16px; flex-direction:row; align-items:center; gap:9px; }
      .top-title { font-size:18px; letter-spacing:-.7px; }
      .top-sub p { display:none; }
      .info-btn { font-size:12px; white-space:nowrap; padding:6px; gap:5px; }
      .info-btn svg { width:15px; height:15px; }
      main { padding:17px 14px 100px; gap:14px; }
      .overview { grid-template-columns:1fr; gap:13px; }
      .total { padding:0; display:flex; justify-content:space-between; align-items:flex-end; gap:10px; }
      .mobile-updated { display:flex; flex-direction:column; align-items:flex-end; gap:5px; text-align:right; min-width:0; padding-bottom:3px; }
      .mobile-updated .muted-label { font-size:10.5px; }
      #mobileUpdatedValue { font-size:11.5px; font-variant-numeric:tabular-nums; color:#527c83; white-space:nowrap; }
      .muted-label { font-size:12px; }
      .total-number { font-size:24px; margin-top:1px; }
      .search { height:48px; border-radius:10px; padding:0 12px; gap:11px; }
      .search input { font-size:16px; }
      .filters { min-height:40px; }
      .result-count { font-size:12px; }
      .sort-wrap { width:117px; }
      .sort-toggle { height:38px; padding:0 10px 0 12px; font-size:12px; }
      .sort-toggle svg { width:15px; height:15px; }
      .sort-menu button { font-size:12px; }
      .desktop-table { display:none; }
      .mobile-empty { display:block; }
      .mobile-list { display:flex; flex-direction:column; gap:9px; }
      .mobile-card { text-decoration:none; display:flex; align-items:stretch; gap:11px; width:100%; text-align:left; border:1px solid #bedade; border-radius:11px; padding:11px 11px 12px; background:#fff; box-shadow:0 1px 1px #244a4a04; color:inherit; }
      .mobile-card:nth-child(even) { background:#f0f7f7; }
      .mobile-card:focus-visible { outline:3px solid #0b879b; outline-offset:2px; }
      .mobile-card:hover { background:#e6f1f2; }
      .mobile-rank { align-self:flex-start; padding:5px 7px; border-radius:7px; background:#e1f0f0; color:#35646e; font-size:12px; font-weight:700; min-width:37px; text-align:center; }
      .mobile-body { flex:1; min-width:0; display:flex; flex-direction:column; gap:7px; }
      .mobile-meta { display:flex; justify-content:space-between; align-items:center; gap:7px; font-size:11.5px; color:#637f86; font-variant-numeric:tabular-nums; }
      .mobile-duration { display:flex; align-items:center; gap:3px; white-space:nowrap; }
      .mobile-duration svg { width:13px; height:13px; }
      .mobile-title { color:#117d96; font-size:13px; font-weight:600; line-height:1.5; text-decoration:underline; text-underline-offset:2px; overflow-wrap:anywhere; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
      .footer { display:none; }
      .mobile-actions { display:flex; position:fixed; z-index:10; left:max(16px,env(safe-area-inset-left)); right:max(16px,env(safe-area-inset-right)); bottom:max(22px,calc(env(safe-area-inset-bottom) + 12px)); flex-direction:row; justify-content:space-between; align-items:flex-end; gap:14px; pointer-events:none; }
      body:has(#searchInput:focus) .mobile-actions { display:none; }
      .mobile-top { width:46px; height:46px; display:grid; place-items:center; border:1px solid #b9d8db; border-radius:50%; color:#42656b; background:#fff; box-shadow:0 4px 18px #1b44453a; }
      .mobile-top[hidden] { display:none; }
      .mobile-top svg { width:24px; height:24px; }
      .mobile-random { display:flex; align-items:center; justify-content:center; gap:8px; min-width:128px; min-height:46px; padding:10px 15px; background:#42656b; color:#fff; border:1px solid #385b62; border-radius:24px; box-shadow:0 5px 18px #1b44454a; font-size:13px; font-weight:700; }
      .mobile-random svg { width:20px; height:20px; flex:none; }
      .mobile-random:disabled { background:#a9c6c8; border-color:#a9c6c8; box-shadow:none; cursor:default; }
      .mobile-random:not(:disabled):active { background:#33565d; }
      .mobile-random,.mobile-top,.random-confirm { pointer-events:auto; }
      .random-confirm { position:absolute; left:0; bottom:calc(100% + 12px); width:min(280px,calc(100vw - 28px)); border:1px solid #b9d8db; border-radius:13px; padding:16px; background:#fff; box-shadow:0 12px 32px #1b44454a; color:#284851; }
      .random-confirm[hidden] { display:none; }
      .random-confirm strong { font-size:14px; }
      .random-confirm p { margin:8px 0 15px; font-size:12px; line-height:1.6; color:#62818a; }
      .random-confirm-buttons { display:flex; justify-content:flex-end; gap:9px; }
      .random-confirm-buttons button { min-width:68px; min-height:40px; border-radius:8px; padding:8px 12px; font-size:13px; font-weight:600; }
      .random-cancel { border:1px solid #c6dcdf; background:#fff; color:#42656b; }
      .random-open { border:1px solid #42656b; background:#42656b; color:#fff; }
      dialog.about-dialog { padding:19px; }
      .dialog-head h2 { font-size:19px; }
      .social-link { padding:6px; gap:5px; }
      .social-link img { width:28px; height:27px; }
      .social-label strong { font-size:12px; }
      .social-label small { font-size:10px; }
    }
    @media (max-width:380px) { .social-grid { grid-template-columns:1fr; } }
    @media (max-width:360px) { .top { padding-inline:12px; }.top-title { font-size:16px; } main { padding-inline:11px; }.mobile-card { padding:10px 9px; gap:8px; }.mobile-title { font-size:12.5px; } .mobile-meta { font-size:10.8px; } }
    @media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
