.rmtv{font-family:inherit;max-width:1100px;margin:20px auto}.rmtv *{box-sizing:border-box}.rmtv-controls{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px;align-items:end}.rmtv-search-label,.rmtv-topic-label{display:flex;flex-direction:column;gap:5px;font-weight:600}.rmtv-search-label{flex:2;min-width:190px}.rmtv-topic-label{flex:1;min-width:190px}.rmtv-controls input,.rmtv-controls select{padding:12px;border:1px solid #a8b7c5;border-radius:7px;width:100%;background:#fff;color:#152b40}.rmtv-stage{background:#172d3b;padding:12px;border:7px solid #263d49;border-radius:24px;box-shadow:inset 0 0 0 2px #5d7580}.rmtv-stage-top,.rmtv-stage-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px;color:#fff}.rmtv-stage-top button,.rmtv-stage-bottom button{background:#23658a;color:#fff;border:0;border-radius:6px;padding:10px 14px;cursor:pointer}.rmtv-screen{background:#101b26;aspect-ratio:16/9;overflow:auto;color:#eee;border:3px solid #8299a2;border-radius:10px}.rmtv-screen iframe,.rmtv-screen video{width:100%;height:100%;border:0;display:block}.rmtv-library{padding:18px;background:#f9faf8;color:#173a50;min-height:100%;height:100%;overflow:auto}.rmtv-library h3{margin:0 0 14px;color:#173a50}.rmtv-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:12px}.rmtv-tile{display:flex;flex-direction:column;gap:6px;background:white;border:1px solid #ccd9e2;border-radius:9px;padding:8px;text-align:left;cursor:pointer;color:#173a50;min-width:0}.rmtv-tile:hover,.rmtv-tile:focus-visible{border-color:#246d99;box-shadow:0 0 0 2px #c8e6f6}.rmtv-thumb{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:16/9;background:linear-gradient(145deg,#164361,#0b1b30);border-radius:5px;overflow:hidden}.rmtv-thumb img{width:100%;height:100%;object-fit:cover}.rmtv-video-symbol{font-size:34px;color:#fff}.rmtv-tile strong{font-size:14px;line-height:1.3;overflow-wrap:anywhere}.rmtv-tile small{font-size:12px;color:#566977;overflow-wrap:anywhere}.rmtv-now{margin:0;font-size:16px;color:white}.rmtv-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}.rmtv-item{background:#f5f5f5;border:1px solid #ddd;border-radius:8px;padding:14px;text-align:left;cursor:pointer;min-height:75px;color:#18374b}.rmtv-item strong,.rmtv-item small{display:block}.rmtv-item small{opacity:.7;margin-top:6px}.rmtv-item.active{border:2px solid #246d99}.rmtv-count{color:#666}@media(max-width:600px){.rmtv-screen{aspect-ratio:auto;height:360px}.rmtv-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rmtv-stage-top,.rmtv-stage-bottom{flex-wrap:wrap}}

/* V2: on-screen topic selection; no controls or duplicate title list outside TV */
.rmtv-v2 .rmtv-screen{aspect-ratio:16/9;min-height:320px;overflow:auto;background:#f8fafc;color:#18374b}
.rmtv-v2 .rmtv-v2-panel{padding:20px;min-height:100%;color:#18374b}
.rmtv-v2 .rmtv-v2-panel h3{color:#18374b;font-size:22px;margin:0 0 14px}
.rmtv-v2 .rmtv-v2-topic-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:12px}
.rmtv-v2 .rmtv-v2-topic-btn,.rmtv-v2 .rmtv-v2-title-btn{padding:16px 12px;background:#e9f2f9;border:2px solid #b5cddd;border-radius:9px;color:#123c56;cursor:pointer;font-weight:700;text-align:center;overflow-wrap:anywhere}
.rmtv-v2 .rmtv-v2-topic-btn:hover,.rmtv-v2 .rmtv-v2-title-btn:hover{background:#d3eaf9;border-color:#246d99}
.rmtv-v2 .rmtv-v2-return{border:0;background:#23658a;color:white;padding:9px 13px;border-radius:6px;cursor:pointer;margin-bottom:12px}
.rmtv-v2 .rmtv-v2-label{display:block;font-weight:700;margin:10px 0}
.rmtv-v2 .rmtv-v2-select,.rmtv-v2 .rmtv-v2-search{display:block;width:100%;max-width:620px;padding:12px;border:1px solid #9eb7ca;border-radius:7px;background:white;color:#173a50;margin:7px 0 12px}
.rmtv-v2 .rmtv-v2-titles{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:9px;margin-top:12px}
.rmtv-v2 .rmtv-v2-title-btn{text-align:left;font-weight:600;padding:12px}
.rmtv-v2 .rmtv-stage-bottom h3{color:white}
@media(max-width:600px){.rmtv-v2 .rmtv-screen{aspect-ratio:auto;height:370px}.rmtv-v2 .rmtv-v2-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Version 2.1: thumbnail video-title cards inside the TV screen */
.rmtv-v2 .rmtv-v2-thumbnail-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin-top:14px;align-content:start}
.rmtv-v2 .rmtv-v2-video-card{appearance:none;display:flex;flex-direction:column;gap:7px;padding:8px;background:#fff;border:1px solid #c9d9e4;border-radius:9px;min-width:0;text-align:left;cursor:pointer;color:#173a50;font:inherit}
.rmtv-v2 .rmtv-v2-video-card:hover,.rmtv-v2 .rmtv-v2-video-card:focus-visible{border-color:#23658a;box-shadow:0 0 0 2px #c9e4f4;outline:none}
.rmtv-v2 .rmtv-v2-imagebox{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:16/9;background:linear-gradient(130deg,#214d69,#0f2534);border-radius:6px;overflow:hidden}
.rmtv-v2 .rmtv-v2-imagebox img{width:100%;height:100%;object-fit:cover}
.rmtv-v2 .rmtv-v2-play-icon{color:#fff;font-size:34px}
.rmtv-v2 .rmtv-v2-video-title{font-size:14px;line-height:1.35;overflow-wrap:anywhere}
@media(max-width:600px){.rmtv-v2 .rmtv-v2-thumbnail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}

.rmtv-v2 .rmtv-v2-imagebox{position:relative}
.rmtv-v2 .rmtv-v2-preview-video{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none;background:#17394e}
.rmtv-v2 .rmtv-v2-preview-overlay{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:white;background:rgba(12,35,51,.65);border-radius:100%;width:44px;height:44px;display:flex;align-items:center;justify-content:center;font-size:23px;pointer-events:none;text-shadow:0 1px 3px #000}
.rmtv-v2 .rmtv-topic{max-width:100%;padding:8px;margin:6px;background:#293c55;color:white;border:1px solid #b89545}.rmtv-v2 .rmtv-search-form,.rmtv-v2 .rmtv-pagination{display:flex;gap:8px;flex-wrap:wrap}.rmtv-v2 .rmtv-search-form input{flex:1;min-width:120px}.rmtv-v2 .rmtv-pagination button,.rmtv-v2 .rmtv-search-form button{background:#293c55;color:#efcc79;padding:8px 14px;border:1px solid #b89545;border-radius:5px}

.rmtv-v2 .rmtv-stage{background:#101827;border-color:#293c55}.rmtv-v2 .rmtv-stage-top strong{color:#efcc79}.rmtv-v2 .rmtv-view{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.rmtv-v2 .rmtv-view button{background:#293c55;color:#efcc79;border:1px solid #b89545;border-radius:5px;padding:8px}.rmtv-v2 .rmtv-view button[aria-pressed=true]{background:#efcc79;color:#101827}.rmtv-v2 .rmtv-view button:disabled{opacity:.5}.rmtv-v2[data-view=portrait]{max-width:480px}.rmtv-v2[data-view=portrait] .rmtv-v2-thumbnail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rmtv-v2[data-view=landscape] .rmtv-screen{height:auto;aspect-ratio:16/9;min-height:0}.rmtv-v2 .rmtv-screen.rmtv-playing{height:auto;min-height:0;aspect-ratio:16/9;background:#000;overflow:hidden}.rmtv-v2 .rmtv-screen:fullscreen{width:100%;height:100%;aspect-ratio:auto;background:#000;border:0}.rmtv-v2 .rmtv-screen video{object-fit:contain}
