.hmyt-podcast-shell { width: 100%; max-width: none; margin-block: 20px 20px; direction: rtl; font-family: inherit; } .hmyt-podcast-shell, .hmyt-podcast-shell * { box-sizing: border-box; } .hmyt-podcast-media { display: none; } .hmyt-podcast-player { width: 100%; color: #7f53ef; isolation: isolate; } .hmyt-podcast-player__frame { --hmyt-podcast-border-size: 1px; --hmyt-podcast-progress-border-size: 2px; position: relative; overflow: hidden; height: 56px; border-radius: 999px; isolation: isolate; box-shadow: 0 10px 30px rgba(127, 83, 239, .08); } .hmyt-podcast-player__frame::before { position: absolute; z-index: 0; inset: 0; border-radius: inherit; background: linear-gradient(270deg, rgba(127, 83, 239, .2), #7f53ef, rgba(127, 83, 239, .2)); content: ''; pointer-events: none; } .hmyt-podcast-player__frame::after { position: absolute; z-index: 2; inset: var(--hmyt-podcast-border-size); border-radius: inherit; background: #fff; content: ''; pointer-events: none; } .hmyt-podcast-player__progress { position: absolute; z-index: 4; inset: 0; display: block; width: 100%; height: 100%; padding: var(--hmyt-podcast-progress-border-size); overflow: hidden; border-radius: inherit; direction: ltr; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; pointer-events: none; } .hmyt-podcast-player__progress-fill { position: absolute; top: 0; bottom: 0; left: 0; display: block; width: 0; height: 100%; background: linear-gradient(180deg, #8f4aec, #6860f3, #2586ff); transition: width .12s linear; } .hmyt-podcast-player__surface { position: relative; z-index: 3; display: flex; align-items: center; width: calc(100% - var(--hmyt-podcast-border-size) - var(--hmyt-podcast-border-size)); height: calc(100% - var(--hmyt-podcast-border-size) - var(--hmyt-podcast-border-size)); margin: var(--hmyt-podcast-border-size); padding-block: 2px; border-radius: inherit; background: rgba(236, 237, 255, .7); overflow: hidden; } .hmyt-podcast-player__headphone { display: inline-flex; flex: 0 0 24px; width: 24px; height: 24px; margin-inline: 16px 12px; color: #5000b2; } .hmyt-podcast-player__headphone svg { display: block; width: 24px; height: 24px; } .hmyt-podcast-player__texts { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; justify-content: center; } .hmyt-podcast-player__title, .hmyt-podcast-player__subtitle { display: block; overflow: hidden; margin: 0; color: #424750; text-overflow: ellipsis; white-space: nowrap; line-height: normal; } .hmyt-podcast-player__title { font-size: 13px; font-weight: 700; } .hmyt-podcast-player__subtitle { font-size: 11px; font-weight: 600; } .hmyt-podcast-player__controls { direction: ltr; display: grid; flex: 0 0 auto; grid-template-columns: 0 0 40px 0; gap: 0; align-items: center; width: 40px; height: 40px; margin-inline: 7px 12px; transition: width .42s cubic-bezier(.22, 1, .36, 1), grid-template-columns .42s cubic-bezier(.22, 1, .36, 1), gap .42s cubic-bezier(.22, 1, .36, 1); } .hmyt-podcast-player.is-expanded .hmyt-podcast-player__controls { grid-template-columns: 34px 32px 40px 32px; gap: 3px; width: 147px; } body .hmyt-podcast-player__surface .hmyt-podcast-player__button { grid-row: 1; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; min-width: 0; padding: 4px; min-height: unset; border: 0; border-radius: 999px; outline: 0; background: transparent; box-shadow: none; line-height: normal; color: #7f53ef; cursor: pointer; appearance: none; -webkit-tap-highlight-color: transparent; } body .hmyt-podcast-player__button:hover { background: transparent; opacity: .85; color: unset; } .hmyt-podcast-player__button svg { display: block; width: 23px; height: 23px; flex: 0 0 auto; } .hmyt-podcast-player__speed { grid-column: 1; width: 34px; font: 700 11px/1 inherit; white-space: nowrap; unicode-bidi: isolate; } .hmyt-podcast-player__seek--back { grid-column: 2; } body .hmyt-podcast-player__surface .hmyt-podcast-player__play { z-index: 2; grid-column: 3; width: 40px; height: 40px; padding: 8px; background: #fff; min-height: unset; box-shadow: 0 8px 22px rgba(127, 83, 239, .16); } body .hmyt-podcast-player__play:hover { background: #fff; box-shadow: 0 10px 26px rgba(127, 83, 239, .16); } .hmyt-podcast-player__seek--forward { grid-column: 4; } .hmyt-podcast-player__seek, .hmyt-podcast-player__speed { opacity: 0; transition: opacity .25s ease; pointer-events: none; } .hmyt-podcast-player.is-expanded .hmyt-podcast-player__seek, .hmyt-podcast-player.is-expanded .hmyt-podcast-player__speed { opacity: 1; pointer-events: auto; } .hmyt-podcast-player.is-ended .hmyt-podcast-player__seek, .hmyt-podcast-player.is-ended .hmyt-podcast-player__speed { opacity: 0; transition-duration: .08s; pointer-events: none; } .hmyt-podcast-player__seek.is-feedback, .hmyt-podcast-player__speed.is-feedback, .hmyt-podcast-player__play.is-feedback { animation: hmytPodcastControlFeedback .36s cubic-bezier(.2, .8, .25, 1) both; } @keyframes hmytPodcastControlFeedback { 0% { opacity: 1; } 42% { opacity: .62; } 100% { opacity: 1; } } @media (max-width: 520px) { .hmyt-podcast-shell { margin-block: 16px 16px; } .hmyt-podcast-player__headphone { margin-inline: 12px 8px; } .hmyt-podcast-player__controls { grid-template-columns: 0 0 36px 0; width: 36px; height: 36px; margin-inline: 5px 8px; } .hmyt-podcast-player.is-expanded .hmyt-podcast-player__controls { grid-template-columns: 30px 28px 36px 28px; gap: 2px; width: 128px; } body .hmyt-podcast-player__button { width: 28px; height: 28px; padding: 3px; } body .hmyt-podcast-player__play { width: 36px; height: 36px; padding: 7px; } .hmyt-podcast-player__button svg { width: 20px; height: 20px; } .hmyt-podcast-player__speed { width: 30px; font-size: 10px; } .hmyt-podcast-player__seek { width: 28px; } } @media (max-width: 390px) { .hmyt-podcast-player__title { font-size: 12px; } .hmyt-podcast-player__subtitle { font-size: 10px; } .hmyt-podcast-player.is-expanded .hmyt-podcast-player__controls { grid-template-columns: 27px 25px 34px 25px; gap: 2px; width: 117px; } .hmyt-podcast-player__controls { grid-template-columns: 0 0 34px 0; width: 34px; height: 34px; } body .hmyt-podcast-player__button { width: 25px; height: 25px; } body .hmyt-podcast-player__play { width: 34px; height: 34px; padding: 7px; } .hmyt-podcast-player__button svg { width: 19px; height: 19px; } .hmyt-podcast-player__speed { width: 27px; font-size: 9.5px; } .hmyt-podcast-player__seek { width: 25px; } } @media (prefers-reduced-motion: reduce) { .hmyt-podcast-player__controls, .hmyt-podcast-player__play, .hmyt-podcast-player__seek, .hmyt-podcast-player__speed, .hmyt-podcast-player__progress-fill { transition: none; } .hmyt-podcast-player__seek.is-feedback, .hmyt-podcast-player__speed.is-feedback, .hmyt-podcast-player__play.is-feedback { animation: none; } }