@charset "utf-8"; /************************** table of content **************************/ /* util home-layout home-head home-nav home-swiper home-mode home-xfall home-footer home-sidebtn details-layout details-poster details-content details-nav details-main details-nav details-toolbar details-gallery details-footer video-player */ /************************** /table of content **************************/ /* util ------------------------------ */ .icon-bg { overflow: hidden; text-indent: -3600px; } /* home-layout ------------------------------ */ body { position: relative; font-family: 'microsoft yahei',arial,helvetica,sans-serif; background: #252525; } .wrapper { width: 1200px; margin-right: auto; margin-left: auto; } @media screen and (max-width: 1200px) { .wrapper { width: 100%; } } /* home-head ------------------------------ */ .head-container { position: absolute; top: 0; right: 0; left: 0; z-index: 2; height: 60px; color: #fff; background: -webkit-gradient(linear, left top, right top, from(rgba(72,90,200,.8)), to(rgba(111,81,140,.8))); background: linear-gradient(90deg, rgba(72,90,200,.8) 0%, rgba(111,81,140,.8) 100%); } .head-wrapper { height: 100%; } .logo { float: left; width: 300px; height: 40px; margin-top: 10px; overflow: hidden; text-indent: -1000px; background: no-repeat left center; background-size: 70%; } .xianying .logo { background-image: ; background-size: 45%; } .logo-m { display: none; } /* home-nav ------------------------------ */ .menu { float: right; width: 100px; height: 60px; margin-top: 5px; overflow: hidden; text-align: center; } .menu.active { height: 400px; background: -webkit-gradient(linear, left top, right top, from(rgba(72,90,200,.8)), to(rgba(111,81,140,.8))); background: linear-gradient(90deg, rgba(72,90,200,.8) 0%, rgba(111,81,140,.8) 100%); } .menu-toggle { height: 60px; overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent; } .menu-toggle-ico { position: relative; width: 30px; height: 4px; -webkit-box-sizing: content-box; box-sizing: content-box; padding: 8px 0; margin-top: 12px; margin-right: auto; margin-left: auto; background: #fff; background-clip: content-box; border-top: 4px solid #fff; border-bottom: 4px solid #fff; } .menu.active .menu-toggle-ico { background: transparent; border-color: transparent; } .menu-toggle .menu-toggle-ico:before, .menu-toggle .menu-toggle-ico:after { position: absolute; left: 0; width: 30px; height: 4px; content: ''; background: #fff; opacity: 0; } .menu.active .menu-toggle-ico:before { top: -4px; opacity: 1; -webkit-transform: rotate(-135deg) translatey(-10px) translatex(-10px); transform: rotate(-135deg) translatey(-10px) translatex(-10px); } .menu.active .menu-toggle-ico:after { bottom: -4px; opacity: 1; -webkit-transform: rotate(135deg) translatey(7px) translatex(-7px); transform: rotate(135deg) translatey(7px) translatex(-7px); } @media screen and (max-width:1200px) { .menu { z-index: 10; width: 30px; height: 50px; margin-top: 0; } .menu-toggle { margin-top: 5px; } .menu.active { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: -webkit-gradient(linear, left top, right top, from(rgba(72,90,200,1)), to(rgba(111,81,140,1))); background: linear-gradient(90deg, rgba(72,90,200,1) 0%, rgba(111,81,140,1) 100%); } .menu.active .menu-toggle { float: right; margin-right: 20px; } .menu.active .menu-list { position: absolute; top: 50%; /*偏移*/ left: 0; width: 100%; font-size: 18px; font-weight: bold; -webkit-transform: translatey(-50%); transform: translatey(-50%); } .menu-toggle-ico { width: 20px; height: 1px; padding-top: 6px; padding-bottom: 6px; border-top-width: 1px; border-bottom-width: 1px; } .menu-toggle .menu-toggle-ico:before, .menu-toggle .menu-toggle-ico:after { width: 28px; height: 1px; } } .menu-list { padding: 0; margin: 0; clear: both; list-style: none; } .menu-list a { display: block; -webkit-box-sizing: border-box; box-sizing: border-box; padding: 1em 0; overflow: hidden; font-size: 16px; color: #fff; text-decoration: none; } .menu-list a:hover { background: rgba(0,0,0,.1); } @media screen and (max-width:1200px) { .head-container { background: transparent; } .logo { display: none; } .menu { margin-right: 10px; } } /* home-swiper ------------------------------ */ #top-swiper img { display: block; width: 100%; -webkit-filter: opacity(.8); filter: opacity(.8); } #top-swiper .swiper-slide { position: relative; } #top-swiper .swiper-pagination-bullets { bottom: 30px; } #top-swiper .swiper-pagination-bullet { position: relative; width: 100px; height: 8px; background: #fff; border-radius: 0; opacity: .5; } #top-swiper .swiper-pagination-bullet-active { top: 1px; height: 10px; background: -webkit-gradient(linear, left top, right top, from(rgba(72,90,200,1)), to(rgba(111,81,140,1))); background: linear-gradient(90deg, rgba(72,90,200,1) 0%, rgba(111,81,140,1) 100%); border: 1px solid #999; opacity: 1; } #top-swiper .swiper-pagination-fraction { padding-right: 1em; font-size: 14px; color: #fff; text-align: right; } #top-swiper .swiper-pagination-current { font-size: 18px; color: #0cf; } .top-swiper-caption { position: absolute; top: 40%; right: 0; left: 0; margin: auto; color: #fff; text-align: center; text-shadow: 0 0 5px #555; } .top-swiper-title { padding: 1em; font-size: 40px; text-shadow: 0 0 10px #555; } .top-swiper-abs { padding-bottom: 36px; font-size: 28px; color: #fff; text-shadow: 0 0 10px #555; } @media screen and (max-width:1200px) { .top-swiper-caption { top: 50%; -webkit-transform: translatey(-50%); transform: translatey(-50%); } .top-swiper-title { padding: 0; margin: 0; margin-bottom: .5em; font-size: 20px; line-height: 1.5; } .top-swiper-abs { padding: 0; margin: 0; font-size: 14px; } .menu { margin-right: 10px; } .logo-m { display: block; height: 40px; overflow: hidden; text-indent: -1000px; background: no-repeat center center; background-size: auto 50%; nd-size: auto 50%; -webkit-tap-highlight-color: transparent; } .xianying .logo-m { background-image: ; } } /* home-mode ------------------------------ */ .mode-wrapper { padding-top: 50px; text-align: center; } @media screen and (max-width:1200px) { .mode-wrapper { display: none; } } .mode-btn { display: inline-block; width: 30px; height: 30px; margin: 0 15px; overflow: hidden; text-indent: -200px; cursor: pointer; } .mode-btn-column { border-top: 12px solid #666; border-bottom: 12px solid #666; -webkit-transition: all .3s; transition: all .3s; } .mode-btn-grid { position: relative; } .mode-btn-grid:before, .mode-btn-grid:after { position: absolute; left: 0; width: 6px; height: 12px; content: ''; border-right: 12px solid #666; border-left: 12px solid #666; -webkit-transition: all .3s; transition: all .3s; } .mode-btn-grid:after { bottom: 0; } .mode-btn-column:hover, .mode-btn-grid:hover:before, .mode-btn-grid:hover:after, .mode-btn-column.active, .mode-btn-grid.active:before, .mode-btn-grid.active:after { border-color: #fff; } /* home-xfall ------------------------------ */ .xfall-container { margin-top: 20px; } .xfall-container.reset { margin-top: 50px; } .xfall-container .xfall-item { position: absolute; } .xfall-container.reset .xfall-item { position: relative; margin-bottom: 100px; opacity: 1; } .xfall-item { background: #333; border: 10px solid #333; -webkit-transition: border-color .3s, background .3s; transition: border-color .3s, background .3s; } .xfall-item:hover { background: #555; border-color: #555; -webkit-box-shadow: 0 0 10px #111; box-shadow: 0 0 10px #111; } @media screen and (max-width:1200px) { .xfall-container.reset { margin-top: 0; } .xfall-item { background: transparent; border: none; } .xfall-item:hover { background: transparent; -webkit-box-shadow: none; box-shadow: none; } .xfall-item:after { right: 0; bottom: 0; left: 0; display: block; width: 50px; height: 3px; margin: 10px auto; margin-right: auto; margin-left: auto; content: ''; background: #ccc; } .xfall-container.reset .xfall-item { margin-bottom: 20px; } } .xfall-item img { display: block; width: 100%; height: auto; } .xfall-container.reset .thumbnail-caption { position: absolute; top: 50%; right: 0; left: 0; margin-top: -90px; color: #fff; text-align: center; background: -webkit-gradient(linear, left top, right top, from(rgba(72,90,200,.8)), to(rgba(111,81,140,.8))); background: linear-gradient(90deg, rgba(72,90,200,.8) 0%, rgba(111,81,140,.8) 100%); } .thumbnail-title { padding: 10px 0; font-size: 16px; line-height: 1.6; color: #fff; } .xfall-container.reset .thumbnail-title { padding: .8em 1em .5em; font-size: 36px; } .thumbnail-abs { display: none; } .xfall-container.reset .thumbnail-abs { display: block; padding-bottom: 26px; font-size: 26px; } .thumbnail-video > a:first-child{ display: block; position: relative; } .thumbnail-video > a:first-child:after{ content: ''; width:50px; height:50px; position: absolute; bottom:10px; right:10px; background: no-repeat center center; z-index: 10; background-size: 100%; } .thumbnail-info { padding: 10px 0 0; overflow: hidden; font-size: 16px; line-height: 16px; color: #fff; text-align: right; } .thumbnail-time { display: inline-block; color: #999; } .thumbnail-zan { position: relative; display: inline-block; min-width: 70px; padding: 7px; padding-left: 35px; margin-left: 20px; color: #fff; text-align: right; cursor: pointer; background: no-repeat 8px center; background-color: rgba(0,0,0,.5); background-size: auto 60%; border-radius: 30px; -webkit-transition: background-color .3s ease-in; transition: background-color .3s ease-in; } .thumbnail-zan:hover { color: #333; background-color: rgb(177, 161, 204); } .thumbnail-zan.state-1:hover { color: #fff; background-color: rgba(0, 0, 0, .5); } .thumbnail-zan i { font-style: normal; } .thumbnail-zan:hover i { visibility: hidden; } .thumbnail-zan:hover:after { position: absolute; top: 0; bottom: 0; left: 50%; font-size: 14px; line-height: 30px; content: '点赞'; } .thumbnail-zan.state-0:hover:after { content: '点赞'; } .thumbnail-zan.state-1:hover:after { content: '已赞'; } .thumbnail-zan.state-1 { cursor: default; } @media screen and (max-width:1200px) { .xfall-container.reset .thumbnail-caption { top: 0; margin-top: auto; } .xfall-container.reset .thumbnail-title { height: 32px; padding: 0 .2em; overflow: hidden; font-size: 16px; font-weight: normal; line-height: 2; } .xfall-container.reset .thumbnail-abs { display: none; } .thumbnail-info { padding: .5em 10px; overflow: hidden; font-size: 12px; color: #ccc; } } .xpage-more-tip { width: 7em; max-width: 1200px; padding: 10px; margin-top: 50px; margin-right: auto; margin-bottom: 50px; margin-left: auto; font-size: 14px; color: #ccc; text-align: center; cursor: pointer; background: #333; border: 1px solid #555; border-radius: 20px; -webkit-tap-highlight-color: transparent; } .xpage-more-tip:hover { background: #444; } /* home-footer ------------------------------ */ .page-footer { padding: 20px; margin-top: 30px; line-height: 1.5; color: #666; text-align: center; background: #333; } @media screen and (max-width: 1200px) { .page-footer { font-size: 12px; } } /* home-sidebtn ------------------------------ */ .sidebtn { position: fixed; right: 20px; bottom: 120px; /* background: #fff; */ width: 60px; text-align: center; } @media screen and (max-width: 1200px) { .sidebtn { display: none; } } .scrolltop { height: 60px; margin-bottom: 10px; font-size: 30px; line-height: 60px; cursor: pointer; background: no-repeat center center; background-size: 50%; border: 1px solid #434fa4; } .scrolltop:hover { background-color: #14121a; } .make-a-submit { display: block; padding: .5em 0; font-size: 12px; color: #fff; cursor: pointer; background: -webkit-gradient(linear, left top, right top, from(rgba(72,90,200,.8)), to(rgba(111,81,140,.8))); background: linear-gradient(90deg, rgba(72,90,200,.8) 0%, rgba(111,81,140,.8) 100%); border-radius: 6px; } /* details-layout ------------------------------ */ .d-html { height: 100%; overflow: hidden; background: #ccc; } .d-html body { position: relative; height: 100%; overflow: hidden; } .d-wrapper { width: 62.5%; margin-right: auto; margin-left: auto; } @media screen and (max-width: 768px) { .d-html.scroll { height: auto; overflow: auto; } .d-html.scroll body { position: static; height: auto; } .d-wrapper { width: 100%; } } /* details-poster ------------------------------ */ .d-poster { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100; overflow: hidden; background: #555 no-repeat center center; background-size: 100% 100%; } .d-poster:before { position: absolute; top: 0; left: 0; width: 100%; height: 100%; content: ''; background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, .05)), to(rgba(0, 0, 0,.8))); background: linear-gradient(rgba(0, 0, 0, .05), rgba(0, 0, 0,.8)); } .d-poster-logo { position: absolute; top: 80px; left: 80px; width: 150px; height: 80px; background: url(/uploads/image/zsryimg/logo.png) no-repeat left center; } .d-poster-logo-sub { position: absolute; top: 25%; width: 100%; height: 25%; background: no-repeat center top; background-size: auto 50%; } .xianying .d-poster-logo-sub { background-image: url(/uploads/image/zsryimg/xianying-logo-sub-lg-light.png); } .d-poster-title { position: absolute; top: 50%; width: 100%; height: 20%; font-size: 60px; color: #fff; text-align: center; text-shadow: 0 0 10px #555; } .d-poster-play { position: absolute; top: 68%; width: 70px; height: 70px; left:0; right:0; margin-left:auto; margin-right:auto; background: url(/uploads/image/zsryimg/icon-play-lg.png) no-repeat center center; background-size: auto 90%; transition: all 0.3s; cursor: pointer; -webkit-tap-highlight-color: transparent; } .d-poster-play:hover { background-size: auto 100%; } @media screen and (max-width: 768px){ .d-poster-play:hover { background-size: auto 90%; } } .d-poster-logo-ry { position: absolute; top: 80%; width: 100%; height: 10%; background: url(/uploads/image/zsryimg/logo-ry.png) no-repeat center center; background-size: auto 50%; } .slideup { position: absolute; right: 0; bottom: 0; left: 0; width: 100px; height: 10%; margin-right: auto; margin-left: auto; cursor: pointer; background: url(/uploads/image/zsryimg/arrow-top.png) no-repeat center center; background-size: 48px; -webkit-transition: background-position-y .3s; transition: background-position-y .3s; -webkit-animation-name: slideup; animation-name: slideup; -webkit-animation-duration: 1s; animation-duration: 1s; -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; -webkit-animation-iteration-count: infinite; animation-iteration-count: infinite; } @-webkit-keyframes slideup { 0% { bottom: 0; } 50% { bottom: 8px; } 100% { bottom: 0; } } @keyframes slideup { 0% { bottom: 0; } 50% { bottom: 8px; } 100% { bottom: 0; } } .slideup:hover { background-position-y: 0; } @media screen and (max-width: 768px) { .d-poster { background-size: auto 120%; } .d-poster-logo { top: 15px; left: 15px; width: 100px; height: 50px; background-size: auto 100%; } .d-poster-logo-sub { position: absolute; top: 10%; height: 30%; background-position: center center; background-size: 60% auto; } .d-poster-title { position: absolute; top: 40%; height: auto; -webkit-box-sizing: border-box; box-sizing: border-box; padding: .4em 1em; font-size: 28px; line-height: 1.5; color: #fff; text-align: center; /* background: -webkit-linear-gradient(left, rgba(72,90,200,0.8) 0%, rgba(111,81,140,0.8) 100%); background: linear-gradient(90deg, rgba(72,90,200,0.8) 0%, rgba(111,81,140,0.8) 100%); */ } } /* details-content ------------------------------ */ .d-content { position: absolute; top: 0; right: 0; bottom: 0; left: 0; } @media screen and (max-width:768px) { .d-content { position: static; } } .d-head-container { position: fixed; top: 0; left: 0; z-index: 4; width: 100%; height: 60px; background: -webkit-gradient(linear, left top, right top, from(rgba(72,90,200,.8)), to(rgba(111,81,140,.8))); background: linear-gradient(90deg, rgba(72,90,200,.8) 0%, rgba(111,81,140,.8) 100%); background-color: #555; } .d-logo { display: inline-block; width: 160px; height: 40px; margin-top: 10px; background: no-repeat left center; background-size: 90%; } .xianying .d-logo { background-image: ; background-size: auto 80%; } /* details-nav ------------------------------ */ .d-nav-list { float: right; margin-right: 16.666666%; font-size: 16px; line-height: 60px; list-style: none; } .d-nav-list li { float: left; margin-left: 1.5em; } .d-nav-list li a { font-weight: bold; color: #dedede; -webkit-transition: all .2s; transition: all .2s; } .d-nav-list li a:hover { color: #fff; text-decoration: none; -webkit-tap-highlight-color: transparent; } .d-menu { display: none; } @media screen and (max-width: 768px) { .d-head-container { height: 50px; } .d-head-wrapper { height: 100%; background: no-repeat center center; background-size: auto 35%; } .xianying .d-head-wrapper { background-image: ; } .d-logo { height: 20px; } .d-nav-list { display: none; } .d-menu { display: block; } } .contribute-btn { position: absolute; top: 20px; right: 20px; width: 120px; height: 20px; padding-left: 50px; line-height: 20px; color: #fff; background: no-repeat left center; } /* details-main ------------------------------ */ .d-content-container { position: absolute; top: 60px; right: 0; bottom: 60px; left: 0; z-index: 2; overflow: hidden; } .d-content-container-m { display: none; } @media screen and (max-width: 768px) { .d-content-container,.contribute-btn, .d-logo { display: none; } /* 移动端图表 */ .d-content-container-m { display: block; padding-top: 50px; font-size: 16px; color: #ccc; } .d-content-container-m img { display: block; width: 100%; } .d-content-container-m h3 { padding: 15px; font-size: 14px; font-weight: normal; line-height: 1.6; text-indent: 2em; } .d-thumbnail { position: relative; margin-top: 0; margin-bottom: 15px; line-height: 1.6; background: #333; border-bottom: 2px solid #3c3c3c; } .thumbnail-tag { position: absolute; top: 18px; right: 0; padding: .1em .5em; color: #fff; background: rgba(0,0,0,.5); border-top-left-radius: 1em; border-bottom-left-radius: 1em; } .thumbnail-tag .cur { font-size: 16px; } .thumbnail-tag .cur:after { padding: .2em; color: #8c8c8c; content: '/'; } .thumbnail-tag .all { font-size: 12px; } } .content-wrapper { position: absolute; top: 3%; right: 0; bottom: 0; left: 0; margin-right: auto; margin-left: auto; overflow: auto; } .gallery-container { position: relative; width: 100%; } /* details-toolbar ------------------------------ */ .tool-list { position: relative; z-index: 2; height: 60px; padding-top: 10px; padding-right: 16.666666%; } .tool-title { display: inline-block; font-size: 22px; font-weight: bold; color: #fff; } .tool-ercode { position: relative; float: right; width: 30px; height: 30px; margin-right: 20px; overflow: hidden; text-align: left; cursor: pointer; background: no-repeat center center; } .tool-ercode.active { overflow: visible; } .tool-ercode-grid { position: absolute; top: 300%; right: 0; width: 330px; padding: 15px; background-color: #fff; -webkit-box-shadow: 0 0 10px #999; box-shadow: 0 0 10px #999; opacity: 0; -webkit-transition: opacity .3s ease-in; transition: opacity .3s ease-in; } .tool-ercode.active .tool-ercode-grid { opacity: 1; } .tool-ercode-tit { padding-top: 20px; font-size: 18px; text-align: center; } .tool-zan { float: right; } /* details-nav-btn ------------------------------ */ .nav-aticle { position: absolute; top: 50%; z-index: 3; width: 120px; margin-top: -30px; color: #999; -webkit-transition: color .3s; transition: color .3s; -webkit-tap-highlight-color: transparent; } .nav-aticle:hover { color: #fff; text-decoration: none; } /* .nav-aticle::before { position: absolute; top: -32px; left: 0; width: 100%; text-align: center; content: '上一期'; } .nav-aticle-next::before { content: '下一期'; } */ .nav-aticle img { position: relative; display: block; width: 100%; -webkit-box-sizing: border-box; box-sizing: border-box; padding: 6px; background: -webkit-gradient(linear, left top, right top, from(rgba(72,90,200,.8)), to(rgba(111,81,140,.8))); background: linear-gradient(90deg, rgba(72,90,200,.8) 0%, rgba(111,81,140,.8) 100%); } .nav-aticle-pre { left: -6px; -webkit-transition: left .3s; transition: left .3s; } .nav-aticle-pre:hover { left: 6px; } .nav-aticle-next { right: -6px; -webkit-transition: right .3s; transition: right .3s; } .nav-aticle-next:hover { right: 6px; } .nav-aticle h3 { padding: 10px; font-size: 14px; line-height: 1.5; } @media screen and (max-width: 768px) { .nav-aticle { position: relative; right: auto; left: auto; display: none; float: left; width: 50%; -webkit-box-sizing: border-box; box-sizing: border-box; margin-top: 50px; margin-bottom: 50px; border: 1px solid #555; border-right-color: transparent; border-left-color: transparent; } .nav-aticle-pre:hover { left: 15px; } .nav-aticle-next:hover { right: 15px; } .nav-aticle img { display: none; } .nav-aticle-pre { left: 15px; } .nav-aticle-pre:after { position: absolute; top: 20%; right: 15px; width: 0; height: 60%; content: ''; border-left: 1px dashed #555; } .nav-aticle-next { right: 15px; } .nav-aticle-pre h3 { padding-right: 25px; padding-left: 0; text-align: left; } .nav-aticle-next h3 { padding-right: 0; padding-left: 25px; text-align: right; } } /* details-gallery ------------------------------ */ .gallery-pic img, .gallery-thumbs img { display: block; max-width: 100%; max-height: 600px; margin-left: auto; margin-right: auto; -webkit-box-shadow: 0 10px 10px -8px #000; box-shadow: 0 10px 10px -8px #000; } .gallery-pic img { /*box-shadow: 0px 10px 10px -8px #000;*/ } .gallery-pic { float: left; width: 83.333333%; box-sizing: border-box; } .gallery-pic .swiper-slide{ padding: 20px; background: #333; } .gallery-pager { padding-right: .5em; font-size: 32px; font-style: italic; color: #fff; line-height: 1; } .gallery-pager span { font-size: 20px; color: #aabdfd; } .gallery-pic h3 { margin-top: 10px; font-size: 16px; font-weight: normal; line-height: 2; color: #fff; /* max-height: 6em; overflow: hidden; overflow-y: auto; */ } .gallery-thumbs { float: left; width: 16.666666%; height: 600px; overflow: hidden; } .gallery-thumbs .swiper-wrapper { width: 70%; margin-right: auto; margin-left: auto; } .gallery-thumbs .swiper-slide img { outline: 3px solid transparent; width: 100%; height: 90%; } .gallery-thumbs .swiper-slide-active img { outline-color: #53aafa; } .content-wrapper .swiper-button { position: absolute; top: 0; top: 0; right: 0; left: auto; width: 16.666666%; margin-top: 0; background: no-repeat center top; } .content-wrapper .swiper-button-disabled { display: none; } .content-wrapper .swiper-button-next { background-image: ; background-position: center bottom; } .zan-wrapper { padding: 20px 0; text-align: center; } .zan-wrapper .thumbnail-zan { float: none; margin-left: 0; } .zan-tip { padding: 20px; color: #999; } /* details-footer ------------------------------ */ .d-footer { position: absolute; bottom: 0; left: 0; width: 100%; padding-bottom: 20px; font-size: 12px; font-size: 14px; line-height: 1.6; color: #999; text-align: center; } @media screen and (max-width: 768px) { .d-footer { position: static; padding: 15px; margin-top: 40px; clear: both; background: #3c3c3c; } } /* video-player ------------------------------ */ .video-cover{ position: fixed; left:0; top:0; z-index: 1000; width: 100%; height: 100%; background: rgba(0,0,0,0.8); cursor: pointer; } .video-iframe{ left: 0; right: 0; position: absolute; top: 50%; margin-left: auto; margin-right: auto; width: 800px; height: 450px; margin-top: -225px; border: 10px solid #555; background: #000; max-width: 100%; } @media screen and (max-width: 768px){ .video-iframe{ width: 414px; height: 232px; margin-top: -115px; border: 1px solid #555; } } @media screen and (max-width: 414px){ .video-iframe{ width: 360px; height: 202.5px; margin-top: -100px; border: 1px solid #555; } } @media screen and (max-width: 360px){ .video-iframe{ width: 320px; height: 180px; margin-top: -90px; border: 1px solid #555; } } .video-controls{ position: absolute; bottom:20px; right:20px; color:#555; font-size: 20px; list-style: none; } @media screen and (max-width: 768px){ .video-controls{ display: none; } }