/* Shared desktop proportions for MyDream pages. */

@media (min-width: 768px) {

  :root {

    --md-web-bg: #171821;

    --md-web-panel: #23242f;

    --md-web-control: #32343f;

    --md-web-muted: #a7a8b2;

    --md-web-accent: #ff2c55;

    --md-web-radius: 12px;

  }

  #md-nav, #md-desktop-bar, #md-shell[data-view] { background: var(--md-web-bg) !important; }

  #md-desktop-bar .md-desktop-search { background: #363740; border-color: #ffffff29; }

  .md-desktop-search input { font-size: 15px; }

  #md-desktop-bar .md-top-login[aria-label="登入帳號"] {

    background: var(--md-web-accent); border-color: transparent; color: #fff;

    min-width: 80px; border-radius: 12px; height: 38px;

  }

  #md-desktop-bar .md-top-login[aria-label="我的帳號"] {

    background: var(--md-web-panel); border-color: transparent; border-radius: 999px;

  }

  #md-shell[data-feature=creators] { padding: 0 16px 12px 0; }

  #md-shell[data-feature=creators] > .md-mobile-feed-header { min-height: 40px; padding-bottom: 4px; }

  #md-shell[data-feature=creators]:has(.md-feed-stage) > .md-mobile-feed-header {

    position: absolute; z-index: 6; top: 6px; left: 0; right: 66px;

    text-shadow: 0 1px 5px #000;

  }

  #md-shell[data-feature=creators] .md-feed-workspace { padding-right: 50px; }

  #md-shell[data-feature=creators] .md-feed-stage { border-radius: var(--md-web-radius); overflow: hidden; }

  #md-shell[data-feature=creators] .md-feed-stage:fullscreen { border-radius: 0; }

  #md-shell[data-feature=creators] .md-feed-caption {

    bottom: 58px; left: 16px; right: 84px; color: #fff;

    text-shadow: 0 1px 8px #000, 0 1px 3px #000;

  }

  #md-shell[data-feature=creators] .md-feed-byline { font-size: 19px; font-weight: 650; }

  #md-shell[data-feature=creators] .md-feed-caption h2 { font-size: 15px; }

  #md-shell[data-feature=creators] .md-feed-stage > .md-player-toolbar {

    position: absolute; inset: auto 0 0; height: 46px;

    padding: 0 16px; border-radius: 0; background: #0d0d12ed;

  }

  #md-shell[data-feature=creators] .md-feed-actions { bottom: 108px !important; }

  #md-shell[data-feature=creators] .md-mobile-feed-meta {

    position: absolute; right: 62px; bottom: 49px; padding: 0;

    display: block; z-index: 4;

  }

  #md-shell[data-feature=creators] .md-mobile-feed-meta > [data-feature=report] { width: 50px; }

  #md-shell[data-feature=creators] .md-feed-hint { display: none; }

  body.md-native-player #md-native-toolbar {

    height: 46px; bottom: 12px; background: #0d0d12ed;

    padding-inline: 16px; border-radius: 0 0 var(--md-web-radius) var(--md-web-radius);

  }

  body.md-native-player #md-native-details .md-native-story { gap: 12px; }

  body.md-native-player #md-native-details {

    background: #181922df; border-color: #ffffff22; box-shadow: none;

  }

  #md-shell[data-view=profile] { padding-inline: 0; }

  #md-shell[data-view=profile] .md-profile { background: var(--md-web-bg); }

  #md-shell[data-view=profile] .md-profile-heading,

  #md-shell[data-view=profile] .md-profile-content { padding-inline: clamp(24px, 6.25vw, 120px); }

  #md-shell[data-view=profile] .md-profile-heading { padding-block: 36px 28px; }

  #md-shell[data-view=profile] .md-profile-top > img { width: 104px; height: 104px; }

  #md-shell[data-view=profile] .md-profile-summary { margin-left: 120px; }

  #md-shell[data-view=profile] .md-profile-content { background: var(--md-web-bg); }

  #md-shell[data-view=profile] .md-profile-tabs button { padding: 12px 0; }

  #md-shell[data-view=profile] .md-profile-tabs button.active { color: #fff; border-color: var(--md-web-accent); }

  #md-shell[data-view=profile] .md-profile-filter button[aria-pressed=true] {

    color: #ff6280; background: #ff2c5522; border-color: transparent;

  }

  #md-feature-layer .md-public-author { background: var(--md-web-bg); }

  #md-feature-layer .md-public-author-header {

    padding: 24px; background: linear-gradient(100deg, #23242f, #171821 80%);

  }

  #md-feature-layer .md-public-author-info .md-primary {

    background: var(--md-web-accent); color: #fff;

  }

  #md-account-menu, #md-account-sheet > section, #md-account-layer > section {

    background: var(--md-web-panel); border-radius: var(--md-web-radius);

  }

  #md-account-menu > button { min-height: 40px; }

  #md-account-sheet.md-inbox > section { width: 100%; border-radius: 16px; }

  #md-account-sheet .md-inbox-tools input { background: #41424e; }

  #md-account-sheet.md-inbox .md-im-conversation { min-height: 64px; }

  #md-account-sheet .md-primary, #md-account-layer .md-primary {

    background: var(--md-web-accent); color: #fff;

  }

  #md-shell[data-feature=rewards] .md-reward-wallet,

  #md-shell[data-feature=rewards] .md-checkin,

  #md-shell[data-feature=rewards] > .md-task-group {

    background: var(--md-web-panel); border-radius: var(--md-web-radius);

  }

  #md-shell[data-feature=rewards] .md-reward-task { border-color: #ffffff15; }

  #md-shell[data-view=auth] .md-auth {

    width: min(460px, calc(100% - 32px)); max-width: none;

    padding: 20px 38px 30px; background: linear-gradient(145deg, #e9ffff, #fff 24%);

    color: #24252d; border-radius: 24px;

  }

  #md-shell[data-view=auth] .md-auth-logo { width: 50px; height: 50px; margin: 12px auto; }

  #md-shell[data-view=auth] .md-auth h1 { font-size: 21px; }

  #md-shell[data-view=auth] .md-auth label, #md-shell[data-view=auth] .md-auth-back,

  #md-shell[data-view=auth] .md-forgot-password { color: #50515c; }

  #md-shell[data-view=auth] .md-auth input { background: #f4f4f6; border-color: transparent; color: #222; }

  #md-shell[data-view=auth] .md-auth input:focus { border-color: var(--md-web-accent); }

  #md-shell[data-view=auth] .md-auth .md-primary { background: var(--md-web-accent); color: #fff; border-radius: 12px; }

}



@media (min-width: 768px) {

  #md-nav > button[data-tab] { min-height: 40px; gap: 14px; }

  #md-nav > button[data-tab=rewards] { margin-top: 22px; position: relative; }

  #md-nav > button[data-tab=rewards]::before {

    content: ""; position: absolute; top: -11px; left: 8px; right: 8px;

    border-top: 1px solid #ffffff14;

  }

  #md-nav .md-nav-footer { padding: 0 0 8px; gap: 10px; border: 0; }

  #md-nav .md-nav-download {

    display: grid; gap: 9px; padding: 11px;

    color: #eee; background: #1b2026; border: 1px solid #ffffff14; border-radius: 16px;

  }

  .md-nav-download strong { display: flex; align-items: center; gap: 5px; font-size: 13px; }

  .md-nav-download strong img { width: 22px; height: 22px; object-fit: contain; }

  .md-nav-download > span { font-size: 11px; color: var(--md-web-muted); white-space: nowrap; }

  .md-nav-download b {

    justify-self: start; padding: 5px 10px; border-radius: 7px;

    background: #a7e5df; color: #142726; font-size: 12px;

  }

  #md-nav .md-nav-footer small { padding-inline: 8px; color: #92939c; }

  #md-desktop-bar .md-top-actions { gap: 4px; }

  #md-desktop-bar .md-top-tool { width: 36px; gap: 5px; }

  #md-desktop-bar .md-top-tool svg { width: 16px; height: 16px; }

  #md-desktop-bar .md-top-login { margin-left: 8px; }

  #md-desktop-bar .md-top-login[aria-label="登入帳號"] { min-width: 88px; }

  #md-desktop-bar .md-top-login svg { flex: none; width: 20px; height: 20px; }

  #md-desktop-bar .md-top-login .md-top-avatar { width: 30px; height: 30px; }

}



@media (min-width: 768px) and (max-width: 1100px) {

  #md-desktop-bar .md-desktop-search { width: min(600px, calc(100vw - 480px)); }

}



/* Align navigation boxes to the measured desktop reference. */

@media (min-width: 768px) {

  #md-nav { gap: 2px; }

  #md-nav .md-desktop-brand { padding-bottom: 14px; }

  #md-nav > button[data-tab] { height: 40px; border-radius: 12px; gap: 13px; }

  #md-nav > button[data-tab] img { width: 20px; height: 20px; }

  #md-nav > button[data-tab] span { font-size: 16px; }

  #md-nav > button[data-tab=rewards] { margin-top: 23px; }

  #md-nav .md-nav-download { height: 122px; box-sizing: border-box; align-content: start; gap: 11px; }

  #md-nav .md-nav-download > span { font-size: 12px; }

  #md-nav .md-nav-footer { padding-bottom: 0; }

  #md-nav .md-nav-footer small { line-height: 22px; }

  #md-nav .md-nav-utilities { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;width:100%;box-sizing:border-box;margin:4px 0 0;padding:12px 0 0;border-top:1px solid #ffffff18; }

  #md-nav .md-nav-utilities > :is(a, button) {

    position:relative;display:grid;grid-template:20px / minmax(0,1fr);place-items:center;align-content:center;gap:2px 0;width:100%;min-width:0;height:44px;padding:0;

    color:#a9c4da;border:0;border-radius:8px;background:transparent;

    font: 16px/1 system-ui,sans-serif; cursor: pointer;

  }

  #md-nav .md-nav-utilities > :is(a, button):hover { color: #fff; background: #ffffff14; }
  #md-nav .md-nav-utilities svg { display:block;width:20px;height:20px;pointer-events:none; }
  #md-nav .md-nav-utilities > :not(:first-child)::before { content:"";position:absolute;left:0;top:11px;bottom:11px;width:1px;background:#ffffff1c; }
  #md-nav .md-nav-utilities > :is(a,button):focus-visible { outline:2px solid #9fc4df;outline-offset:-2px; }

  #md-desktop-bar { padding-right: 16px; }

  #md-desktop-bar .md-top-actions { gap: 0; }

  #md-desktop-bar .md-top-tool { width: 40px; height: 46px; gap: 7px; }

  #md-desktop-bar .md-top-login { margin-left: 12px; }

  #md-desktop-bar .md-top-login[aria-label="登入帳號"] { width: 88px; height: 38px; }

}



/* Discovery details follow the measured desktop placement. */

@media (min-width: 768px) {

  #md-desktop-bar .md-desktop-search button { display: flex; align-items: center; gap: 4px; padding-inline: 12px; }

  .md-desktop-search button svg { width: 19px; height: 19px; }

  .md-desktop-search button span { font-size: 15px; font-weight: 600; }

  #md-shell[data-view=series] .md-category { position: relative; border-bottom: 0; }

  #md-shell[data-view=series] .md-category.active::after {

    content: ""; position: absolute; left: 50%; bottom: 1px; transform: translateX(-50%);

    width: 16px; height: 2px; border-radius: 2px; background: var(--md-web-accent);

  }

  #md-shell[data-view=series] .md-card-image::after {

    content: ""; position: absolute; inset: auto 0 0; height: 34%;

    background: linear-gradient(transparent, #0009); pointer-events: none;

  }

  #md-shell[data-view=series] .md-card-image .md-views {

    z-index: 1; left: 12px; right: auto; bottom: 9px; padding: 0;

    background: transparent; font-size: 13px; font-weight: 500;

  }

  #md-shell[data-view=series] .md-card-image .md-badge { z-index: 1; }

  .md-lead-player .md-preview-controls {

    display: grid; grid-template-columns: 28px auto 1fr 28px 28px; grid-template-rows: 10px 34px;

    column-gap: 6px; row-gap: 0; inset: auto 0 0; padding: 0 16px 4px;

    background: linear-gradient(transparent, #08090beb 38%);

  }

  .md-lead-player .md-preview-controls button { width: 28px; height: 32px; padding: 4px; }

  .md-lead-player .md-preview-controls output { font-size: 13px; }

  .md-lead-player .md-preview-controls input {

    grid-column: 1 / -1; grid-row: 1; width: 100%; height: 10px; margin: 0;

    appearance: none; background: transparent;

  }

  .md-lead-player .md-preview-controls input::-webkit-slider-runnable-track {

    height: 2px; background: linear-gradient(to right, #fff var(--md-played,0%), #ffffff55 var(--md-played,0%));

  }

  .md-lead-player .md-preview-controls input::-webkit-slider-thumb {

    appearance: none; width: 8px; height: 8px; border-radius: 50%; background: white; margin-top: -3px;

  }

  .md-lead-player .md-preview-controls input::-moz-range-track { height: 2px; background: #ffffff55; }

  .md-lead-player .md-preview-controls input::-moz-range-progress { height: 2px; background: #fff; }

  .md-lead-player .md-preview-controls input::-moz-range-thumb { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; }

  .md-preview-controls [data-preview-action=mute] { grid-column: 4; }

  .md-preview-controls [data-preview-action=fullscreen] { grid-column: 5; }

}



@media (min-width: 768px) {

  #md-shell[data-feature=creators] .md-feed-stage > .md-player-toolbar,

  body.md-native-player #md-native-toolbar {

    display: grid; grid-template-rows: 10px 32px; column-gap: 8px; row-gap: 0;

  }

  #md-shell[data-feature=creators] .md-feed-stage > .md-player-toolbar {

    grid-template-columns: 26px auto 1fr 56px 24px 26px;

  }

  body.md-native-player #md-native-toolbar {

    grid-template-columns: 26px auto 1fr 56px 26px; padding-block: 0;

  }

  .md-feed-stage .md-player-toolbar input,

  body.md-native-player #md-native-toolbar input {

    grid-area: 1 / 1 / 2 / -1; width: 100%; min-height: 10px; height: 10px; margin: 0;

  }

  .md-feed-stage .md-player-rate, body.md-native-player #md-native-toolbar select { grid-column: 4; }

  .md-feed-stage .md-player-toolbar [data-feature=feed-mute] { grid-column: 5; grid-row: 2; justify-self: center; }

  .md-feed-stage .md-player-toolbar [data-feature=feed-fullscreen] { grid-column: 6; grid-row: 2; }

  .md-feed-stage .md-player-toolbar [data-feature=feed-fullscreen] span { display: none; }

}



/* Creator profile and playback details. */

.md-feed-exit { display: none; }

.md-feed-stage:is(:fullscreen,.md-feed-css-fullscreen) .md-feed-exit {

  display: block; position: absolute; z-index: 10; left: 12px; top: 12px;

  background: #111b; color: #fff; border: 1px solid #ffffff55;

  border-radius: 999px; padding: 8px 14px; cursor: pointer;

}

.md-feed-stage.md-feed-css-fullscreen { position: fixed !important; inset: 0; width: 100vw !important; height: 100dvh !important; z-index: 25000; border-radius: 0; background: #000; }

.md-im-media { display: block; max-width: min(220px, 100%); max-height: 250px; border-radius: 6px; }

.md-im-file-label { display: grid; gap: 4px; margin: 8px 0 0; font-size: 12px; }

.md-im-file { max-width: 100%; color: inherit; }

#md-native-toolbar .md-vod-retry { position: absolute; left: 50%; bottom: 110%; transform: translateX(-50%); background: #171821; padding: 8px 12px; border-radius: 8px; }

@media (min-width: 768px) {

  #md-shell[data-feature=creators] .md-feed-actions { bottom: 95px !important; gap: 16px !important; }

  #md-shell[data-feature=creators] .md-feed-actions > button { min-height: 49px; }

  #md-shell[data-feature=creators] .md-mobile-feed-meta { right: 62px; bottom: 45px; }

  #md-feature-layer .md-public-author-header {

    background: linear-gradient(90deg,#171821 24%,#17182170),var(--md-author-cover,none) center / cover no-repeat #171821;

  }

}

@media (max-width: 767px) {

  #md-shell[data-feature=creators] .md-feed-stage { width: 100%; border-radius: 0; }

  #md-shell[data-feature=creators] .md-feed-video { width: 100%; object-fit: cover; }

  .md-feed-stage:is(:fullscreen,.md-feed-css-fullscreen) .md-feed-video { object-fit: contain !important; }

  #md-feature-layer .md-public-author { background: #fff; color: #18191f; padding: 0 0 16px; }

  #md-feature-layer .md-public-author > .md-layer-close { position: absolute; z-index: 1; top: 12px; left: 12px; color: #fff; background: #222b; }

  #md-feature-layer .md-public-author-header {

    margin: 0 0 14px; padding: 56px 16px 18px; border-radius: 0; color: white;

    background: linear-gradient(0deg,#12121bd9,#12121b40),var(--md-author-cover,none) center / cover no-repeat #262b3a;

  }

  .md-public-author .md-author-works-heading { padding: 0 12px 8px; margin: 0; color: #222; }

  .md-public-author .md-author-works { gap: 2px; }

  .md-public-author .md-author-work img { border-radius: 0; }

  .md-public-author .md-author-work span { padding: 0 3px 5px; }

}



#md-shell[data-feature=creators] .md-feed-actions [data-feature=report] { order: 5; }

@media (min-width: 768px) {

  #md-shell[data-feature=creators] .md-feed-actions { bottom: 62px !important; }

  #md-feature-layer .md-public-author-header {

    min-height: 220px;

    background: linear-gradient(90deg,#171821eb,#17182121 65%),var(--md-author-cover,none) center 32% / cover no-repeat #171821;

  }

}

@media (max-width: 767px) {

  #md-feature-layer .md-public-author-header {

    display: block; position: relative; color: #18191f;

    padding: 160px 0 0; margin-bottom: 12px;

    background: var(--md-author-cover,none) center top / 100% auto no-repeat #272a36;

  }

  #md-feature-layer .md-public-author-header .md-author-big {

    position: absolute; left: 16px; top: 104px; width: 70px; height: 70px;

    border: 3px solid #fff;

  }

  #md-feature-layer .md-public-author-info {

    border-radius: 14px 14px 0 0; background: #fff; padding: 22px 16px 6px;

  }

  #md-feature-layer .md-public-author-info .md-author-stats { margin-block: 8px; }

  #md-feature-layer .md-public-author-info button { min-width: 40%; }

}



.md-author-play-back {

  position: absolute; inset: 12px auto auto 12px; z-index: 6;

  border: 1px solid #ffffff50; border-radius: 999px; padding: 8px 12px;

  background: #111b; color: #fff; cursor: pointer;

}

#md-shell .md-feed-author button[data-feature=follow] {

  left: 50%; right: auto; transform: translateX(-50%);

}

@media (max-width: 767px) {

  .md-profile-tabs button, .md-profile-filter button, .md-profile-history-heading, .md-tools button { font-weight: 700; }

  #md-shell[data-view=profile] .md-profile-library[data-library-tab="1"] :is(.md-views,.md-card-title,.md-badge),

  #md-shell[data-view=profile] .md-profile-library[data-library-tab="3"] :is(.md-views,.md-card-title,.md-badge) { display: none !important; }

  #md-shell[data-view=profile] .md-profile-library[data-library-tab="2"] .md-views { display: none !important; }

  #md-shell[data-view=profile] .md-profile-library[data-library-tab="2"] .md-card-title { font-size: 12px; margin: 6px 0 0; }

}



.md-feed-comments #md-clip-comments { display: flex; flex-direction: column; min-height: 0; }

.md-feed-comments .md-comments-list { overflow: auto; padding: 0 0 12px; }

.md-feed-comments #md-comment-form { order: 1; border-top: 1px solid #ffffff20; margin-top: 8px; }

.md-feed-comments #md-comment-form label { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }

.md-feed-comments #md-comment-form input { border-radius: 999px; }

.md-drama-comment-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }

#md-drama-comments .md-drama-comment-sheet {

  align-self: flex-end; width: min(560px,100%); height: min(62dvh,600px);

  margin-inline: auto; border-radius: 18px 18px 0 0; background: #242426;

}

#md-drama-comments .md-drama-comment-sheet h2 { margin: 0 auto; font-size: 15px; }

#md-drama-comments .md-drama-comment-sheet form label { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }

#md-drama-comments .md-drama-comment-sheet textarea { height: 40px; border-radius: 20px; resize: none; }

@media (min-width: 768px) {

  .md-public-author .md-author-works-heading { border-bottom: 1px solid #ffffff22; padding-bottom: 14px; }

  .md-public-author .md-author-works { gap: 14px; }

}

/* Comment threads share real paging/reply/like actions; each player keeps its own sheet layout. */
.md-feed-comments #md-clip-comments { flex:1; overflow:hidden; margin-top:0; }
.md-feed-comments .md-comments-list { flex:1; min-height:0; }
#md-clip-comments .md-comment-thread article,#md-drama-comments .md-comment-thread article { display:flex; align-items:flex-start; gap:10px; border:0; padding:12px 0; text-align:left; }
#md-clip-comments .md-comment-thread img,#md-drama-comments .md-comment-thread img { width:34px; height:34px; border-radius:50%; flex:none; object-fit:cover; margin:0; }
.md-comment-content { flex:1; min-width:0; }
.md-comment-content > strong { font-size:13px; color:#aeb0bd; font-weight:500; }
.md-comment-content > p { margin:5px 0; font-size:14px; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; color:#f0f0f3!important; }
.md-comment-meta { display:flex; align-items:center; flex-wrap:wrap; gap:12px; color:#9295a3; font-size:11px; }
.md-comment-meta > small { font-size:11px; }
.md-comment-meta button,.md-comment-expand { padding:0; border:0; background:transparent; color:#a4a7b5; font:inherit; cursor:pointer; }
.md-comment-meta .md-comment-like { margin-left:auto; min-width:36px; }
.md-comment-meta [aria-pressed=true] { color:#ff416b; }
.md-comment-expand { font-size:12px; margin-top:8px; }
.md-comment-replies { padding-top:6px; }
#md-clip-comments .md-comment-replies img,#md-drama-comments .md-comment-replies img { width:26px; height:26px; }
.md-comment-more { flex:none; align-self:center; border:0; background:transparent; color:#adb0bd; cursor:pointer; padding:8px; }
.md-comment-error:not(:empty) { margin:4px 0; color:#ee9aaa; font-size:12px; }
.md-comment-replying { display:flex; justify-content:space-between; align-items:center; gap:8px; width:100%; font-size:12px; color:#c7c9d4; }
.md-comment-replying button { border:0; background:transparent!important; color:inherit!important; padding:2px 4px!important; font-size:12px; }
.md-comment-composer { flex:none; }
#md-clip-comments #md-comment-form { padding-top:12px; margin-top:auto; }
#md-drama-comments .md-drama-comment-sheet form { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
#md-drama-comments .md-drama-comment-sheet form textarea { flex:1; min-width:0; }
#md-drama-comments .md-drama-comment-sheet form [role=alert] { width:100%; margin:0; color:#ee9aaa; font-size:12px; }
@media(max-width:767px){
 #md-shell[data-view=profile] .md-profile-tabs button,#md-shell[data-view=profile] .md-profile-filter button,#md-shell[data-view=profile] .md-tools button { font-weight:700; }
}

.md-comment-replying[hidden],.md-comment-replies[hidden],.md-comment-more[hidden] { display:none!important; }

.md-feed-comments { display:flex; flex-direction:column; overflow:hidden; }
.md-feed-comments > .md-layer-close { position:absolute; right:18px; top:18px; }
.md-feed-comments > h3 { flex:none; min-height:24px; padding-right:100px; }

@media(min-width:768px){
 #md-shell[data-feature=creators] > .md-mobile-feed-header { pointer-events:none; }
 #md-shell[data-feature=creators] > .md-mobile-feed-header button { pointer-events:auto; }
}

#md-coin-unlock.md-web-unlock { width:min(420px,calc(100vw - 32px)); padding:26px; border-radius:18px; border-color:#ffffff20; background:#24252f; text-align:left; }
#md-coin-unlock.md-web-unlock h2 { margin:0 28px 8px 0; font-size:19px; }
#md-coin-unlock.md-web-unlock h2::before { content:none; }
.md-unlock-heading { display:flex; align-items:center; gap:14px; }
.md-unlock-heading > img { width:58px; height:80px; object-fit:cover; border-radius:7px; flex:none; }
.md-unlock-drama-title { margin:0; font-size:13px; line-height:1.6; color:#a9abb9; }
#md-coin-unlock .md-unlock-close { position:absolute; top:10px; right:12px; width:30px; height:30px; background:transparent; border:0; color:#b7bac7; font-size:25px; cursor:pointer; }
.md-unlock-numbers { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:24px 0 18px; padding:16px; border:1px solid #ffffff12; border-radius:12px; background:#ffffff04; }
.md-unlock-numbers span { display:block; color:#9c9fac; font-size:12px; margin-bottom:6px; }
.md-unlock-numbers strong { font-size:20px; font-weight:650; color:#eee; }
.md-unlock-numbers [data-unlock-cost] { color:#e9cf99; }
.md-unlock-note { margin:0 0 7px; color:#b6b8c3; font-size:12px; }
#md-coin-unlock.md-web-unlock [role=status] { min-height:20px; color:#e2b7c4; font-size:12px; }
#md-coin-unlock.md-web-unlock .md-coin-actions { margin-top:16px; gap:10px; }
#md-coin-unlock.md-web-unlock .md-coin-actions button { position:static; border-radius:10px; min-height:42px; padding:10px 14px; font-size:14px; }
#md-coin-unlock.md-web-unlock [data-unlock-confirm] { background:#b83159; color:#fff; font-weight:650; }
#md-coin-unlock.md-web-unlock [data-unlock-store] { background:transparent; color:#babdca; border:1px solid #ffffff22; }


/* Align desktop creator metadata and actions just above the two-row playback controls. */
@media (min-width:768px) {
  #md-shell[data-feature=creators] .md-feed-stage > #md-feed-controls { bottom:76px!important; }
  #md-shell[data-feature=creators] .md-feed-stage > #md-feed-controls > .md-feed-caption { bottom:0!important; }
  #md-shell[data-feature=creators] .md-feed-stage > #md-feed-controls > .md-feed-actions { top:auto!important;bottom:0!important;transform:none!important; }
}
@media (min-width:768px) and (max-height:600px) {
  #md-shell[data-feature=creators] .md-feed-stage > #md-feed-controls > .md-feed-actions > button { min-height:36px; }
}

/* Short-drama search uses portrait posters, independently of the mixed home feed. */
#md-shell[data-view=series] .md-grid.md-series-search-grid {
  align-items: start;
}
#md-shell[data-view=series] .md-grid.md-series-search-grid > .md-card {
  width: 100%;
  min-width: 0;
  height: auto;
  align-self: start;
}
#md-shell[data-view=series] .md-grid.md-series-search-grid > .md-card .md-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 10;
}
#md-shell[data-view=series] .md-series-search-grid .md-card-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (min-width: 768px) {
  #md-shell[data-view=series] .md-grid.md-series-search-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  #md-shell[data-view=series] .md-grid.md-series-search-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

#md-shell .md-profile-load-more {
  display: block;
  margin: 22px auto 12px;
  padding: 9px 28px;
  border: 1px solid #ffffff26;
  border-radius: 20px;
  background: #25262e;
  color: #eee;
  font: inherit;
  cursor: pointer;
}
#md-shell .md-profile-load-more:disabled { opacity: .6; cursor: default; }

/* Sidebar customer support follows the existing official LINE contact. */
@media(min-width:768px){
 #md-nav .md-nav-utilities > .md-nav-support {
  grid-template-rows:20px;
  align-content:center;
  row-gap:2px;
 }

}

/* Desktop-only link follows Personal; mobile keeps its five navigation tabs. */
#md-nav > .md-nav-creator-center { display:none; }
@media(min-width:768px) {
 #md-nav > .md-nav-creator-center { display:flex;flex:none;align-items:center;gap:13px;height:40px;min-height:40px;margin:0;padding:8px 0 8px 16px;border-radius:10px;color:#a4a7b1;text-decoration:none;box-sizing:border-box; }
 #md-nav > .md-nav-creator-center svg { width:20px;height:20px;flex:none; }
 #md-nav > .md-nav-creator-center span { font-size:16px;line-height:18px;letter-spacing:-.3px;white-space:nowrap; }
 #md-nav > .md-nav-creator-center:hover { background:#ffffff0c;color:#fff; }
 #md-nav > .md-nav-creator-center:focus-visible { outline:2px solid #9fc4df;outline-offset:-2px; }
}
